net.sf.bigyo.container.api
Interface Repository


public interface Repository

The public interface to the component repository. Created on 2004.10.02.

Author:
zsombor

Method Summary
 ConfigurationStrategy getConfigurationStrategy()
           
 List getObjectsFor(String classAlias)
          Return a list of component which provides the specified type.
 boolean isCreateBackups()
          When configuration are persisted, if it's set to true, than backup files will be created.
 void saveConfigurations(File file)
          Save configuration to the specified directory .
 void setConfigurationStrategy(ConfigurationStrategy configurationStrategy)
           
 void setCreateBackups(boolean createBackups)
          When configuration are persisted, if it's set to true, than backup files will be created.
 void setPanicIfDuplicateFound(boolean panicIfDuplicates)
          Throw exception if duplicate component name found.
 

Method Detail

getObjectsFor

List getObjectsFor(String classAlias)
Return a list of component which provides the specified type.

Parameters:
classAlias -
Returns:

setPanicIfDuplicateFound

void setPanicIfDuplicateFound(boolean panicIfDuplicates)
Throw exception if duplicate component name found.

Parameters:
panicIfDuplicates - The panicIfDuplicates to set.

getConfigurationStrategy

ConfigurationStrategy getConfigurationStrategy()
Returns:
Returns the configurationStrategy.

setConfigurationStrategy

void setConfigurationStrategy(ConfigurationStrategy configurationStrategy)
Parameters:
configurationStrategy - The configurationStrategy to set.

setCreateBackups

void setCreateBackups(boolean createBackups)
When configuration are persisted, if it's set to true, than backup files will be created.

Parameters:
createBackups - The createBackups to set.

isCreateBackups

boolean isCreateBackups()
When configuration are persisted, if it's set to true, than backup files will be created.

Returns:
Returns the createBackups.

saveConfigurations

void saveConfigurations(File file)
                        throws ContainerException
Save configuration to the specified directory .

Parameters:
file - The directory.
Throws:
ContainerException


Copyright © 2004 Sourceforge.net. All Rights Reserved.