|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elca.el4j.core.io.support.AbstractOrderedConfigLocationProvider
ch.elca.el4j.core.io.support.ManifestOrderedConfigLocationProvider
public class ManifestOrderedConfigLocationProvider
This configuration location provider extracts module dependency information from manifest files.
Field Summary | |
---|---|
static String |
CONFIG_DEPENDENCIES
The name of the module dependencies attribute. |
static String |
CONFIG_FILES
The name of the configuration files attribute. |
static String |
CONFIG_MODULE
The name of the module name attribute. |
static String |
CONFIG_SECTION
The name of the configuration section in the manifest file. |
protected Resource[] |
m_configLocationResources
The sorted list of resolved config locations. |
protected String[] |
m_configLocations
The sorted list of configuration locations. |
static String |
MANIFEST_FILE
A manifest file's path. |
Constructor Summary | |
---|---|
ManifestOrderedConfigLocationProvider()
|
Method Summary | |
---|---|
protected Resource[] |
assembleConfigLocationResources()
|
protected String[] |
assembleConfigLocations()
|
protected Module |
createModuleFromManifest(URL url)
Creates a new module instance, getting the needed information from a manifest file. |
protected Module[] |
createModules()
|
Resource[] |
getConfigLocationResources()
|
String[] |
getConfigLocations()
|
protected URL[] |
getManifestFiles()
|
Methods inherited from class ch.elca.el4j.core.io.support.AbstractOrderedConfigLocationProvider |
---|
getSortedModules, mergeConfigLocationResources, mergeConfigLocations, setModuleSorter, sortModules |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MANIFEST_FILE
public static final String CONFIG_SECTION
public static final String CONFIG_MODULE
public static final String CONFIG_FILES
public static final String CONFIG_DEPENDENCIES
protected String[] m_configLocations
protected Resource[] m_configLocationResources
Constructor Detail |
---|
public ManifestOrderedConfigLocationProvider()
Method Detail |
---|
public String[] getConfigLocations()
protected String[] assembleConfigLocations()
protected URL[] getManifestFiles() throws IOException
IOException
- If an I/O error occurs.protected Module[] createModules() throws IOException
createModules
in class AbstractOrderedConfigLocationProvider
IOException
- If an I/O error occurs.protected Module createModuleFromManifest(URL url) throws IOException
url
- The manifest file's URL.
IOException
- If an I/O error occurs.public Resource[] getConfigLocationResources()
protected Resource[] assembleConfigLocationResources()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |