Class ContainerConfig

java.lang.Object
org.apache.ofbiz.base.container.ContainerConfig

public final class ContainerConfig extends Object
A container configuration.
  • Method Details

    • getConfiguration

      @Deprecated public static ContainerConfig.Configuration getConfiguration(String containerName, String configFile) throws ContainerException
      Deprecated.
      Retrieves the container configuration element corresponding to a container name.
      Parameters:
      containerName - the name of the container to retrieve
      configFile - the file name corresponding to the global container configuration file
      Returns:
      the corresponding configuration element.
      Throws:
      ContainerException - when no configuration element are found.
    • getConfiguration

      public static ContainerConfig.Configuration getConfiguration(String containerName) throws ContainerException
      Retrieves the container configuration element corresponding to a container name.
      Parameters:
      containerName - the name of the container to retrieve
      Returns:
      the corresponding configuration element.
      Throws:
      ContainerException - when no configuration element are found.
    • getConfigurations

      public static List<ContainerConfig.Configuration> getConfigurations(Element root)
      Finds the <container> configuration elements in a XML element.
      Parameters:
      root - the XML element which cannot be null
      Returns:
      a list of container configuration
    • getPropertyValue

      public static String getPropertyValue(org.apache.ofbiz.base.container.ContainerConfig.PropertyChildren parentProp, String name, String defaultValue)
    • getPropertyValue

      public static int getPropertyValue(org.apache.ofbiz.base.container.ContainerConfig.PropertyChildren parentProp, String name, int defaultValue)
    • getPropertyValue

      public static boolean getPropertyValue(org.apache.ofbiz.base.container.ContainerConfig.PropertyChildren parentProp, String name, boolean defaultValue)