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)
IModuleService
registerUnitWithFeature
in interface IModuleService<UNIT>
unit
- as UNITmoduleFeature
- as IModuleFeature
or a Module
public Collection<IModuleFeature> getFeaturesForUnit(UNIT unit)
getModule(Class)
getFeaturesForUnit
in interface IModuleService<UNIT>
unit
- as UNITIModuleFeature
public Module getModuleFromContext(String name)
Module
from the ApplicationContext
name
- as StringModule
public Module getModule(Class c)
MountModuleUI
; and returns the Module the class belongs to.Module
public Map<UNIT,Collection<IModuleFeature>> getRegister()
public void setRegister(Map<UNIT,Collection<IModuleFeature>> register)
Copyright © 2018. All rights reserved.