Package org.apache.ofbiz.base.container
Class ContainerConfig
java.lang.Object
org.apache.ofbiz.base.container.ContainerConfig
A container configuration.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A container configuration. -
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration
(String containerName) Retrieves the container configuration element corresponding to a container name.getConfiguration
(String containerName, String configFile) Deprecated.static List<ContainerConfig.Configuration>
getConfigurations
(Element root) Finds the<container>
configuration elements in a XML element.static boolean
getPropertyValue
(org.apache.ofbiz.base.container.ContainerConfig.PropertyChildren parentProp, String name, boolean defaultValue) static int
getPropertyValue
(org.apache.ofbiz.base.container.ContainerConfig.PropertyChildren parentProp, String name, int defaultValue) static String
getPropertyValue
(org.apache.ofbiz.base.container.ContainerConfig.PropertyChildren parentProp, String name, String defaultValue)
-
Method Details
-
getConfiguration
@Deprecated public static ContainerConfig.Configuration getConfiguration(String containerName, String configFile) throws ContainerException Deprecated.UsegetConfiguration(String)
instead.Retrieves the container configuration element corresponding to a container name.- Parameters:
containerName
- the name of the container to retrieveconfigFile
- 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
Finds the<container>
configuration elements in a XML element.- Parameters:
root
- the XML element which cannot benull
- Returns:
- a list of container configuration
-
getPropertyValue
-
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)
-
getConfiguration(String)
instead.