|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.unitils.core.ModulesRepository
public class ModulesRepository
A class for holding and retrieving modules.
Constructor Summary | |
---|---|
ModulesRepository(List<Module> modules)
Creates a repository containing the given modules. |
Method Summary | ||
---|---|---|
|
getModuleOfType(Class<T> type)
Gets the modules that is of the given type or a sub-type. |
|
List<Module> |
getModules()
Gets all modules. |
|
|
getModulesOfType(Class<T> type)
Gets all modules that are of the given type or a sub-type. |
|
TestListener |
getTestListener(Module module)
Gets the listener corresponding to the given module. |
|
Map<Module,TestListener> |
getTestListeners()
Gets all listeners. |
|
boolean |
isModuleEnabled(Class<? extends Module> moduleClass)
Checks whether a module of a type exists. |
|
boolean |
isModuleEnabled(String fullyQualifiedClassName)
Checks whether a module of a type with the given class name exists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModulesRepository(List<Module> modules)
modules
- the modules, not nullMethod Detail |
---|
public List<Module> getModules()
public Map<Module,TestListener> getTestListeners()
public <T extends Module> T getModuleOfType(Class<T> type)
T
- The module typetype
- the module type, not null
public <T> List<T> getModulesOfType(Class<T> type)
T
- The module typetype
- the type, not null
public boolean isModuleEnabled(String fullyQualifiedClassName)
fullyQualifiedClassName
- The class name, not null
public boolean isModuleEnabled(Class<? extends Module> moduleClass)
moduleClass
- The class, not null
public TestListener getTestListener(Module module)
module
- the module, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |