Class Configuration

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

public class Configuration extends Object implements Cloneable
Jul 19, 2004
  • Field Details

  • Constructor Details

    • Configuration

      public Configuration()
  • Method Details

    • getContainerLifecyclePlugins

      public Collection<ContainerLifecyclePlugin> getContainerLifecyclePlugins()
    • addContainerLifecyclePlugin

      public void addContainerLifecyclePlugin(ContainerLifecyclePlugin plugin)
    • getContainerLifecyclePluginIterator

      public Iterator<ContainerLifecyclePlugin> getContainerLifecyclePluginIterator()
    • hasContainerLifecyclePlugin

      public boolean hasContainerLifecyclePlugin()
    • getComponentLifecyclePlugins

      public Collection<ComponentLifecyclePlugin> getComponentLifecyclePlugins()
    • addComponentLifecyclePlugin

      public void addComponentLifecyclePlugin(Object object)
    • getComponentLifecyclePluginIterator

      public Iterator<ComponentLifecyclePlugin> getComponentLifecyclePluginIterator()
    • hasComponentLifecyclePlugin

      public boolean hasComponentLifecyclePlugin()
    • getComponent

      public Component getComponent(String s)
    • addComponent

      public void addComponent(Component comp)
    • getComponents

      public Collection<Component> getComponents()
    • getComponentIterator

      public Iterator<Component> getComponentIterator()
    • hasComponent

      public boolean hasComponent()
    • getExternalComponentPlugins

      public ExternalComponentPlugins getExternalComponentPlugins(String s)
    • addExternalComponentPlugins

      public void addExternalComponentPlugins(ExternalComponentPlugins eps)
    • getExternalComponentPluginsIterator

      public Iterator<ExternalComponentPlugins> getExternalComponentPluginsIterator()
    • hasExternalComponentPlugins

      public boolean hasExternalComponentPlugins()
    • addImport

      public void addImport(String url)
    • getImports

      public List<String> getImports()
    • addRemoveConfiguration

      public void addRemoveConfiguration(String type)
    • getRemoveConfiguration

      public List<String> 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
    • hasComponent

      public static boolean hasComponent(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. If no configuration has been defined it will always return false
    • 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