|
||||||||||
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
public abstract class AbstractOrderedConfigLocationProvider
This class simplifies writing ordered configuration location providers.
Constructor Summary | |
---|---|
AbstractOrderedConfigLocationProvider()
|
Method Summary | |
---|---|
protected abstract Module[] |
createModules()
|
protected Module[] |
getSortedModules()
|
protected Resource[] |
mergeConfigLocationResources(Module[] modules)
Merges the configuration location resources of the provided list of modules, preserving the module's order. |
protected String[] |
mergeConfigLocations(Module[] modules)
Merges the configuration locations of the provided list of modules, preserving the module's order. |
void |
setModuleSorter(ModuleSorter moduleSorter)
Sets the module sorter used to compute the list of modules while preserving their hierarchical constraints. |
protected Module[] |
sortModules(Module[] modules)
Sorts an unordered list of modules using the hierarchical constraints defined across the modules. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ch.elca.el4j.core.io.support.ConfigLocationProvider |
---|
getConfigLocationResources, getConfigLocations |
Constructor Detail |
---|
public AbstractOrderedConfigLocationProvider()
Method Detail |
---|
public void setModuleSorter(ModuleSorter moduleSorter)
DefaultModuleSorter
.
moduleSorter
- The module sorter to use.ModuleSorter
protected Module[] getSortedModules() throws IOException
IOException
- On any io problem while working with modules.protected abstract Module[] createModules() throws IOException
IOException
- On any io problem while module creation.protected Module[] sortModules(Module[] modules)
modules
- The list of modules to sort.
protected String[] mergeConfigLocations(Module[] modules)
modules
- The ordered list of modules which configuration locations has to be
merged.
protected Resource[] mergeConfigLocationResources(Module[] modules)
modules
- The ordered list of modules which configuration location resources
has to be merged.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |