Package com.microej.kf.util.module
Class SandboxedModuleManager
- java.lang.Object
-
- com.microej.kf.util.module.SandboxedModuleManager
-
- All Implemented Interfaces:
SandboxedModuleHelper,ej.kf.FeatureStateListener
public class SandboxedModuleManager extends java.lang.Object implements SandboxedModuleHelper, ej.kf.FeatureStateListener
Module manager.
-
-
Constructor Summary
Constructors Constructor Description SandboxedModuleManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SandboxedModulegetCurrentModule()Returns theSandboxedModuleassociated with the current thread context.SandboxedModulegetModule(java.lang.String moduleName)Returns theSandboxedModulethat owns the given module name.voidstateChanged(ej.kf.Feature app, ej.kf.Feature.State previousState)
-
-
-
Method Detail
-
getModule
@Nullable public SandboxedModule getModule(java.lang.String moduleName)
Description copied from interface:SandboxedModuleHelperReturns theSandboxedModulethat owns the given module name.- Specified by:
getModulein interfaceSandboxedModuleHelper- Parameters:
moduleName- the name of the module to look up.- Returns:
- the corresponding
SandboxedModule, ornullif none found.
-
getCurrentModule
public SandboxedModule getCurrentModule()
Description copied from interface:SandboxedModuleHelperReturns theSandboxedModuleassociated with the current thread context.- Specified by:
getCurrentModulein interfaceSandboxedModuleHelper- Returns:
- the current
SandboxedModuleowning the current execution context.
-
stateChanged
public void stateChanged(ej.kf.Feature app, @Nullable ej.kf.Feature.State previousState)- Specified by:
stateChangedin interfaceej.kf.FeatureStateListener
-
-