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()Initializes the module manager and registers a feature state listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureInstalledFeatures()Initializes installed features and applies their resource policies (if provided).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.
-
configureInstalledFeatures
public void configureInstalledFeatures()
Initializes installed features and applies their resource policies (if provided). This method only needs to be called when the Kernel operates in an XIP (Execute In Place) system. Refer to the documentation for more details.- Specified by:
configureInstalledFeaturesin interfaceSandboxedModuleHelper
-
stateChanged
public void stateChanged(ej.kf.Feature app, @Nullable ej.kf.Feature.State previousState)- Specified by:
stateChangedin interfaceej.kf.FeatureStateListener
-
-