Package org.opt4j.config
Class ModuleListUser
- java.lang.Object
-
- org.opt4j.config.ModuleListUser
-
- All Implemented Interfaces:
ModuleList
public class ModuleListUser extends Object implements ModuleList
TheModuleListUser
is aModuleList
for user defined modules.
-
-
Constructor Summary
Constructors Constructor Description ModuleListUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Class<? extends com.google.inject.Module> module)
Adds a module.Collection<Class<? extends com.google.inject.Module>>
getModules()
Returns the classes of all modules.void
remove(Class<? extends com.google.inject.Module> module)
Removes a module.
-
-
-
Method Detail
-
add
public void add(Class<? extends com.google.inject.Module> module)
Adds a module.- Parameters:
module
- the module to be added
-
remove
public void remove(Class<? extends com.google.inject.Module> module)
Removes a module.- Parameters:
module
- the module to be removed
-
getModules
public Collection<Class<? extends com.google.inject.Module>> getModules()
Description copied from interface:ModuleList
Returns the classes of all modules.- Specified by:
getModules
in interfaceModuleList
- Returns:
- the classes of all modules
-
-