Package org.apache.ofbiz.base.component
Class ComponentConfig
- java.lang.Object
-
- org.apache.ofbiz.base.component.ComponentConfig
-
public final class ComponentConfig extends java.lang.Object
An object that models the<ofbiz-component>
element.- See Also:
ofbiz-component.xsd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComponentConfig.ClasspathInfo
An object that models the<classpath>
element.static class
ComponentConfig.DependsOnInfo
static class
ComponentConfig.EntityResourceInfo
An object that models the<entity-resource>
element.static class
ComponentConfig.KeystoreInfo
An object that models the<keystore>
element.static class
ComponentConfig.ResourceInfo
static class
ComponentConfig.ResourceLoaderInfo
An object that models the<resource-loader>
element.static class
ComponentConfig.ServiceResourceInfo
An object that models the<service-resource>
element.static class
ComponentConfig.TestSuiteInfo
An object that models the<test-suite>
element.static class
ComponentConfig.WebappInfo
An object that models the<webapp>
element.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
static java.lang.String
OFBIZ_COMPONENT_XML_FILENAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Boolean
componentExists(java.lang.String componentName)
boolean
enabled()
static java.util.List<ComponentConfig.ClasspathInfo>
getAllClasspathInfos()
static java.util.List<ComponentConfig.ClasspathInfo>
getAllClasspathInfos(java.lang.String componentName)
static java.util.Collection<ComponentConfig>
getAllComponents()
static java.util.List<ContainerConfig.Configuration>
getAllConfigurations()
static java.util.List<ContainerConfig.Configuration>
getAllConfigurations(java.lang.String componentName)
static java.util.List<ComponentConfig.EntityResourceInfo>
getAllEntityResourceInfos(java.lang.String type)
static java.util.List<ComponentConfig.EntityResourceInfo>
getAllEntityResourceInfos(java.lang.String type, java.lang.String componentName)
static java.util.List<ComponentConfig.KeystoreInfo>
getAllKeystoreInfos()
static java.util.List<ComponentConfig.KeystoreInfo>
getAllKeystoreInfos(java.lang.String componentName)
static java.util.List<ComponentConfig.ServiceResourceInfo>
getAllServiceResourceInfos(java.lang.String type)
static java.util.List<ComponentConfig.ServiceResourceInfo>
getAllServiceResourceInfos(java.lang.String type, java.lang.String componentName)
static java.util.List<ComponentConfig.TestSuiteInfo>
getAllTestSuiteInfos()
static java.util.List<ComponentConfig.TestSuiteInfo>
getAllTestSuiteInfos(java.lang.String componentName)
static java.util.List<ComponentConfig.WebappInfo>
getAllWebappResourceInfos()
static java.util.List<ComponentConfig.WebappInfo>
getAllWebappResourceInfos(java.lang.String componentName)
static java.util.List<ComponentConfig.WebappInfo>
getAppBarWebInfos(java.lang.String serverName)
static java.util.List<ComponentConfig.WebappInfo>
getAppBarWebInfos(java.lang.String serverName, java.lang.String menuName)
static java.util.List<ComponentConfig.WebappInfo>
getAppBarWebInfos(java.lang.String serverName, java.util.Comparator<? super java.lang.String> comp, java.lang.String menuName)
java.util.List<ComponentConfig.ClasspathInfo>
getClasspathInfos()
static ComponentConfig
getComponentConfig(java.lang.String globalName)
static ComponentConfig
getComponentConfig(java.lang.String globalName, java.lang.String rootLocation)
java.lang.String
getComponentName()
java.util.List<ContainerConfig.Configuration>
getConfigurations()
java.util.List<ComponentConfig.DependsOnInfo>
getDependsOn()
java.util.List<ComponentConfig.EntityResourceInfo>
getEntityResourceInfos()
java.lang.String
getFullLocation(java.lang.String resourceLoaderName, java.lang.String location)
static java.lang.String
getFullLocation(java.lang.String componentName, java.lang.String resourceLoaderName, java.lang.String location)
java.lang.String
getGlobalName()
static ComponentConfig.KeystoreInfo
getKeystoreInfo(java.lang.String componentName, java.lang.String keystoreName)
java.util.List<ComponentConfig.KeystoreInfo>
getKeystoreInfos()
java.util.Map<java.lang.String,ComponentConfig.ResourceLoaderInfo>
getResourceLoaderInfos()
java.lang.String
getRootLocation()
static java.lang.String
getRootLocation(java.lang.String componentName)
java.util.List<ComponentConfig.ServiceResourceInfo>
getServiceResourceInfos()
java.io.InputStream
getStream(java.lang.String resourceLoaderName, java.lang.String location)
static java.io.InputStream
getStream(java.lang.String componentName, java.lang.String resourceLoaderName, java.lang.String location)
java.util.List<ComponentConfig.TestSuiteInfo>
getTestSuiteInfos()
java.net.URL
getURL(java.lang.String resourceLoaderName, java.lang.String location)
static java.net.URL
getURL(java.lang.String componentName, java.lang.String resourceLoaderName, java.lang.String location)
static ComponentConfig.WebappInfo
getWebappInfo(java.lang.String serverName, java.lang.String webAppName)
static ComponentConfig.WebappInfo
getWebAppInfo(java.lang.String serverName, java.lang.String contextRoot)
java.util.List<ComponentConfig.WebappInfo>
getWebappInfos()
boolean
isFileResource(ComponentConfig.ResourceInfo resourceInfo)
boolean
isFileResourceLoader(java.lang.String resourceLoaderName)
static boolean
isFileResourceLoader(java.lang.String componentName, java.lang.String resourceLoaderName)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
OFBIZ_COMPONENT_XML_FILENAME
public static final java.lang.String OFBIZ_COMPONENT_XML_FILENAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
componentExists
public static java.lang.Boolean componentExists(java.lang.String componentName)
-
getAllClasspathInfos
public static java.util.List<ComponentConfig.ClasspathInfo> getAllClasspathInfos()
-
getAllClasspathInfos
public static java.util.List<ComponentConfig.ClasspathInfo> getAllClasspathInfos(java.lang.String componentName)
-
getAllComponents
public static java.util.Collection<ComponentConfig> getAllComponents()
-
getAllConfigurations
public static java.util.List<ContainerConfig.Configuration> getAllConfigurations()
-
getAllConfigurations
public static java.util.List<ContainerConfig.Configuration> getAllConfigurations(java.lang.String componentName)
-
getAllEntityResourceInfos
public static java.util.List<ComponentConfig.EntityResourceInfo> getAllEntityResourceInfos(java.lang.String type)
-
getAllEntityResourceInfos
public static java.util.List<ComponentConfig.EntityResourceInfo> getAllEntityResourceInfos(java.lang.String type, java.lang.String componentName)
-
getAllKeystoreInfos
public static java.util.List<ComponentConfig.KeystoreInfo> getAllKeystoreInfos()
-
getAllKeystoreInfos
public static java.util.List<ComponentConfig.KeystoreInfo> getAllKeystoreInfos(java.lang.String componentName)
-
getAllServiceResourceInfos
public static java.util.List<ComponentConfig.ServiceResourceInfo> getAllServiceResourceInfos(java.lang.String type)
-
getAllServiceResourceInfos
public static java.util.List<ComponentConfig.ServiceResourceInfo> getAllServiceResourceInfos(java.lang.String type, java.lang.String componentName)
-
getAllTestSuiteInfos
public static java.util.List<ComponentConfig.TestSuiteInfo> getAllTestSuiteInfos()
-
getAllTestSuiteInfos
public static java.util.List<ComponentConfig.TestSuiteInfo> getAllTestSuiteInfos(java.lang.String componentName)
-
getAllWebappResourceInfos
public static java.util.List<ComponentConfig.WebappInfo> getAllWebappResourceInfos()
-
getAllWebappResourceInfos
public static java.util.List<ComponentConfig.WebappInfo> getAllWebappResourceInfos(java.lang.String componentName)
-
getAppBarWebInfos
public static java.util.List<ComponentConfig.WebappInfo> getAppBarWebInfos(java.lang.String serverName)
-
getAppBarWebInfos
public static java.util.List<ComponentConfig.WebappInfo> getAppBarWebInfos(java.lang.String serverName, java.util.Comparator<? super java.lang.String> comp, java.lang.String menuName)
-
getAppBarWebInfos
public static java.util.List<ComponentConfig.WebappInfo> getAppBarWebInfos(java.lang.String serverName, java.lang.String menuName)
-
getComponentConfig
public static ComponentConfig getComponentConfig(java.lang.String globalName) throws ComponentException
- Throws:
ComponentException
-
getComponentConfig
public static ComponentConfig getComponentConfig(java.lang.String globalName, java.lang.String rootLocation) throws ComponentException
- Throws:
ComponentException
-
getFullLocation
public static java.lang.String getFullLocation(java.lang.String componentName, java.lang.String resourceLoaderName, java.lang.String location) throws ComponentException
- Throws:
ComponentException
-
getKeystoreInfo
public static ComponentConfig.KeystoreInfo getKeystoreInfo(java.lang.String componentName, java.lang.String keystoreName)
-
getRootLocation
public static java.lang.String getRootLocation(java.lang.String componentName) throws ComponentException
- Throws:
ComponentException
-
getStream
public static java.io.InputStream getStream(java.lang.String componentName, java.lang.String resourceLoaderName, java.lang.String location) throws ComponentException
- Throws:
ComponentException
-
getURL
public static java.net.URL getURL(java.lang.String componentName, java.lang.String resourceLoaderName, java.lang.String location) throws ComponentException
- Throws:
ComponentException
-
getWebAppInfo
public static ComponentConfig.WebappInfo getWebAppInfo(java.lang.String serverName, java.lang.String contextRoot)
-
getWebappInfo
public static ComponentConfig.WebappInfo getWebappInfo(java.lang.String serverName, java.lang.String webAppName)
-
isFileResourceLoader
public static boolean isFileResourceLoader(java.lang.String componentName, java.lang.String resourceLoaderName) throws ComponentException
- Throws:
ComponentException
-
enabled
public boolean enabled()
-
getClasspathInfos
public java.util.List<ComponentConfig.ClasspathInfo> getClasspathInfos()
-
getComponentName
public java.lang.String getComponentName()
-
getConfigurations
public java.util.List<ContainerConfig.Configuration> getConfigurations()
-
getEntityResourceInfos
public java.util.List<ComponentConfig.EntityResourceInfo> getEntityResourceInfos()
-
getFullLocation
public java.lang.String getFullLocation(java.lang.String resourceLoaderName, java.lang.String location) throws ComponentException
- Throws:
ComponentException
-
getGlobalName
public java.lang.String getGlobalName()
-
getDependsOn
public java.util.List<ComponentConfig.DependsOnInfo> getDependsOn()
-
getKeystoreInfos
public java.util.List<ComponentConfig.KeystoreInfo> getKeystoreInfos()
-
getResourceLoaderInfos
public java.util.Map<java.lang.String,ComponentConfig.ResourceLoaderInfo> getResourceLoaderInfos()
-
getRootLocation
public java.lang.String getRootLocation()
-
getServiceResourceInfos
public java.util.List<ComponentConfig.ServiceResourceInfo> getServiceResourceInfos()
-
getStream
public java.io.InputStream getStream(java.lang.String resourceLoaderName, java.lang.String location) throws ComponentException
- Throws:
ComponentException
-
getTestSuiteInfos
public java.util.List<ComponentConfig.TestSuiteInfo> getTestSuiteInfos()
-
getURL
public java.net.URL getURL(java.lang.String resourceLoaderName, java.lang.String location) throws ComponentException
- Throws:
ComponentException
-
getWebappInfos
public java.util.List<ComponentConfig.WebappInfo> getWebappInfos()
-
isFileResource
public boolean isFileResource(ComponentConfig.ResourceInfo resourceInfo) throws ComponentException
- Throws:
ComponentException
-
isFileResourceLoader
public boolean isFileResourceLoader(java.lang.String resourceLoaderName) throws ComponentException
- Throws:
ComponentException
-
-