Package org.exoplatform.container.xml
Class Configuration
java.lang.Object
org.exoplatform.container.xml.Configuration
- All Implemented Interfaces:
Cloneable
Jul 19, 2004
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(Component comp) voidaddComponentLifecyclePlugin(Object object) voidvoidvoidvoidaddRemoveConfiguration(String type) protected Objectclone()intintbooleanstatic booleanhasComponent(String key) Indicates whether or not the given key has been registered has a component within the current configuration if and only if we have a configuration currently defined.booleanbooleanbooleanvoidThis will keep the current state of the configuration like its size and hashstatic Configurationmerge(Configuration... configs) Merge all the given configurations and return a safe copy of the resultvoidmergeConfiguration(Configuration other) voidremoveConfiguration(String type) toXML()Dumps the configuration in XML format into aStringWriterand returns the contentvoidDumps the configuration in XML format into the givenWriter
-
Field Details
-
KERNEL_CONFIGURATION_1_0_URI
- See Also:
-
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
getContainerLifecyclePlugins
-
addContainerLifecyclePlugin
-
getContainerLifecyclePluginIterator
-
hasContainerLifecyclePlugin
public boolean hasContainerLifecyclePlugin() -
getComponentLifecyclePlugins
-
addComponentLifecyclePlugin
-
getComponentLifecyclePluginIterator
-
hasComponentLifecyclePlugin
public boolean hasComponentLifecyclePlugin() -
getComponent
-
addComponent
-
getComponents
-
getComponentIterator
-
hasComponent
public boolean hasComponent() -
getExternalComponentPlugins
-
addExternalComponentPlugins
-
getExternalComponentPluginsIterator
-
hasExternalComponentPlugins
public boolean hasExternalComponentPlugins() -
addImport
-
getImports
-
addRemoveConfiguration
-
getRemoveConfiguration
-
removeConfiguration
-
mergeConfiguration
-
merge
Merge all the given configurations and return a safe copy of the result- Parameters:
configs- the list of configurations to merge ordered by priority, the second configuration will override the configuration of the first one and so on.- Returns:
- the merged configuration
-
clone
-
hasComponent
Indicates whether or not the given key has been registered has a component within the current configuration if and only if we have a configuration currently defined. If no configuration has been defined it will always returnfalse -
toXML
Dumps the configuration in XML format into the givenWriter -
toXML
Dumps the configuration in XML format into aStringWriterand returns the content -
keepCurrentState
public void keepCurrentState()This will keep the current state of the configuration like its size and hash -
getCurrentSize
public int getCurrentSize()- Returns:
- the currentSize
-
getCurrentHash
public int getCurrentHash()- Returns:
- the currentHash
-