Package org.apache.ofbiz.base.component
Class ComponentLoaderConfig
java.lang.Object
org.apache.ofbiz.base.component.ComponentLoaderConfig
This class is a MODULE for manipulating component loader files.
The component loader files are named component-load.xml
and are present either in the classpath when defining the top-level component
directories or inside those component directories when defining the loading order
of the enabled simple components inside those directories.
Simple components are directories containing a component configuration file
named ofbiz-component.xml
and mapped to a ComponentConfig
object.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Represents a simple component or a component directory.static enum
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetComponentsFromConfig
(URL configUrl) Collects the component definitions from acomponent-load.xml
fileProvides the list of root directory components defined in the classpath.
-
Field Details
-
COMPONENT_LOAD_XML_FILENAME
- See Also:
-
-
Method Details
-
getRootComponents
public static List<ComponentLoaderConfig.ComponentDef> getRootComponents() throws ComponentExceptionProvides the list of root directory components defined in the classpath.- Returns:
- the list of root directory components.
- Throws:
ComponentException
- if the maincomponent-load.xml
file is either invalid or refer to non-existent component directory.
-
getComponentsFromConfig
public static List<ComponentLoaderConfig.ComponentDef> getComponentsFromConfig(URL configUrl) throws ComponentException Collects the component definitions from acomponent-load.xml
file- Parameters:
configUrl
- the location of thecomponent-load.xml
file- Returns:
- a list of component definitions
- Throws:
ComponentException
- when thecomponent-load.xml
file is invalid.
-