eXo Kernel :: Container 2.4.4-CLD

org.exoplatform.container.xml
Class Configuration

java.lang.Object
  extended by org.exoplatform.container.xml.Configuration
All Implemented Interfaces:
Cloneable

public class Configuration
extends Object
implements Cloneable

Jul 19, 2004


Field Summary
static String KERNEL_CONFIGURATION_1_0_URI
           
 
Constructor Summary
Configuration()
           
 
Method Summary
 void addComponent(Object object)
           
 void addComponentLifecyclePlugin(Object object)
           
 void addContainerLifecyclePlugin(Object object)
           
 void addExternalComponentPlugins(Object o)
           
 void addImport(String url)
           
 void addRemoveConfiguration(String type)
           
protected  Object clone()
          
 Component getComponent(String s)
           
 Iterator getComponentIterator()
           
 Iterator getComponentLifecyclePluginIterator()
           
 Collection getComponentLifecyclePlugins()
           
 Collection getComponents()
           
 Iterator<ContainerLifecyclePlugin> getContainerLifecyclePluginIterator()
           
 Collection<ContainerLifecyclePlugin> getContainerLifecyclePlugins()
           
 int getCurrentHash()
           
 int getCurrentSize()
           
 ExternalComponentPlugins getExternalComponentPlugins(String s)
           
 Iterator getExternalComponentPluginsIterator()
           
 List getImports()
           
 List getRemoveConfiguration()
           
 boolean hasComponent()
           
 boolean hasComponentLifecyclePlugin()
           
 boolean hasContainerLifecyclePlugin()
           
 boolean hasExternalComponentPlugins()
           
 void keepCurrentState()
          This will keep the current state of the configuration like its size and hash
static Configuration merge(Configuration... configs)
          Merge all the given configurations and return a safe copy of the result
 void mergeConfiguration(Configuration other)
           
 void removeConfiguration(String type)
           
 String toXML()
          Dumps the configuration in XML format into a StringWriter and returns the content
 void toXML(Writer w)
          Dumps the configuration in XML format into the given Writer
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KERNEL_CONFIGURATION_1_0_URI

public static final String KERNEL_CONFIGURATION_1_0_URI
See Also:
Constant Field Values
Constructor Detail

Configuration

public Configuration()
Method Detail

getContainerLifecyclePlugins

public Collection<ContainerLifecyclePlugin> getContainerLifecyclePlugins()

addContainerLifecyclePlugin

public void addContainerLifecyclePlugin(Object object)

getContainerLifecyclePluginIterator

public Iterator<ContainerLifecyclePlugin> getContainerLifecyclePluginIterator()

hasContainerLifecyclePlugin

public boolean hasContainerLifecyclePlugin()

getComponentLifecyclePlugins

public Collection getComponentLifecyclePlugins()

addComponentLifecyclePlugin

public void addComponentLifecyclePlugin(Object object)

getComponentLifecyclePluginIterator

public Iterator getComponentLifecyclePluginIterator()

hasComponentLifecyclePlugin

public boolean hasComponentLifecyclePlugin()

getComponent

public Component getComponent(String s)

addComponent

public void addComponent(Object object)

getComponents

public Collection getComponents()

getComponentIterator

public Iterator getComponentIterator()

hasComponent

public boolean hasComponent()

getExternalComponentPlugins

public ExternalComponentPlugins getExternalComponentPlugins(String s)

addExternalComponentPlugins

public void addExternalComponentPlugins(Object o)

getExternalComponentPluginsIterator

public Iterator getExternalComponentPluginsIterator()

hasExternalComponentPlugins

public boolean hasExternalComponentPlugins()

addImport

public void addImport(String url)

getImports

public List getImports()

addRemoveConfiguration

public void addRemoveConfiguration(String type)

getRemoveConfiguration

public List getRemoveConfiguration()

removeConfiguration

public void removeConfiguration(String type)

mergeConfiguration

public void mergeConfiguration(Configuration other)

merge

public static Configuration merge(Configuration... configs)
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

protected Object clone()

Overrides:
clone in class Object

toXML

public void toXML(Writer w)
Dumps the configuration in XML format into the given Writer


toXML

public String toXML()
Dumps the configuration in XML format into a StringWriter and 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

eXo Kernel :: Container 2.4.4-CLD

Copyright © 2013 eXo Platform SAS. All Rights Reserved.