| java.lang.Object org.unitils.core.ModulesRepository
ModulesRepository | public class ModulesRepository (Code) | | A class for holding and retrieving modules.
author: Tim Ducheyne author: Filip Neven |
ModulesRepository | public ModulesRepository(List<Module> modules)(Code) | | Creates a repository containing the given modules.
Parameters: modules - the modules, not null |
getModuleOfType | public T getModuleOfType(Class<T> type)(Code) | | Gets the modules that is of the given type or a sub-type.
A UnitilsException is thrown when there is not exactly 1 possible match.
< Parameters: T - > The module type Parameters: type - the module type, not null the module, not null |
getModules | public List<Module> getModules()(Code) | | Gets all modules.
the modules, not null |
getModulesOfType | public List<T> getModulesOfType(Class<T> type)(Code) | | Gets all modules that are of the given type or a sub-type.
< Parameters: T - > The module type Parameters: type - the type, not null the modules, an empty list if none found |
getTestListener | public TestListener getTestListener(Module module)(Code) | | Gets the listener corresponding to the given module.
Parameters: module - the module, not null the listener, null if the module could not be found |
isModuleEnabled | public boolean isModuleEnabled(String fullyQualifiedClassName)(Code) | | Checks whether a module of a type with the given class name exists. The class name can also be
the super-type of an existing module.
Parameters: fullyQualifiedClassName - The class name, not null True if the module exists and is enabled |
isModuleEnabled | public boolean isModuleEnabled(Class<? extends Module> moduleClass)(Code) | | Checks whether a module of a type exists. The class an also be the super-type of an existing module.
Parameters: moduleClass - The class, not null True if the module exists and is enabled |
|
|