Package org.opt4j.config
Class ModuleLoader
java.lang.Object
org.opt4j.config.ModuleLoader
Helper class for loading
PropertyModule
configurations from files or
retrieving these from XML Node
s.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends com.google.inject.Module>
Loads all modules from an XMLNode
.Collection<? extends com.google.inject.Module>
Loads all modules from aFile
.Collection<? extends com.google.inject.Module>
Loads all modules from a file (as filename).
-
Field Details
-
moduleRegister
-
-
Constructor Details
-
ModuleLoader
Constructs aModuleLoader
.- Parameters:
moduleRegister
- the register of all found modules
-
-
Method Details
-
load
Loads all modules from a file (as filename).- Parameters:
filename
- the file (as filename)- Returns:
- the modules
-
load
Loads all modules from aFile
.- Parameters:
file
- the input file- Returns:
- a list of the modules
-
get
Loads all modules from an XMLNode
.- Parameters:
node
- the XML node- Returns:
- a list of the modules
-