UNIT - as Unit that is considered a Modulepublic class DefaultModuleService<UNIT> extends Object implements IModuleService<UNIT>
IModuleService| Constructor and Description |
|---|
DefaultModuleService() |
| Modifier and Type | Method and Description |
|---|---|
Collection<IModuleFeature> |
getFeaturesForUnit(UNIT unit)
Scans the register and adds any others discovered from Context using
getModule(Class) |
Module |
getModule(Class c)
Looks out for
MountModuleUI; and returns the Module the class belongs to. |
Module |
getModuleFromContext(String name)
Fetch a
Module from the ApplicationContext |
Map<UNIT,Collection<IModuleFeature>> |
getRegister() |
void |
registerUnitWithFeature(UNIT unit,
IModuleFeature moduleFeature)
Register a unit for a Functional Feature
|
void |
setRegister(Map<UNIT,Collection<IModuleFeature>> register) |
public void registerUnitWithFeature(UNIT unit, IModuleFeature moduleFeature)
IModuleServiceregisterUnitWithFeature in interface IModuleService<UNIT>unit - as UNITmoduleFeature - as IModuleFeature or a Modulepublic Collection<IModuleFeature> getFeaturesForUnit(UNIT unit)
getModule(Class)getFeaturesForUnit in interface IModuleService<UNIT>unit - as UNITIModuleFeaturepublic Module getModuleFromContext(String name)
Module from the ApplicationContextname - as StringModulepublic Module getModule(Class c)
MountModuleUI; and returns the Module the class belongs to.Modulepublic Map<UNIT,Collection<IModuleFeature>> getRegister()
public void setRegister(Map<UNIT,Collection<IModuleFeature>> register)
Copyright © 2018. All rights reserved.