public class ModuleRegister extends Object implements Iterable<Class<? extends com.google.inject.Module>>
ModuleRegister contains all found modules for the
Configurator.| Constructor and Description |
|---|
ModuleRegister(ModuleList finder)
Constructs and populates the
ModuleRegister. |
| Modifier and Type | Method and Description |
|---|---|
PropertyModule |
get(Class<? extends com.google.inject.Module> clazz)
Returns the
PropertyModule of the specified class and creates a
new instance if necessary. |
Iterator<Class<? extends com.google.inject.Module>> |
iterator() |
int |
size()
Returns the number of found modules.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliterator@Inject public ModuleRegister(ModuleList finder)
ModuleRegister.finder - the module finder to be usedpublic int size()
HashSet.size()public PropertyModule get(Class<? extends com.google.inject.Module> clazz)
PropertyModule of the specified class and creates a
new instance if necessary.clazz - the class of the module