Package com.microej.kf.util.module
Class ApplicationModule
- java.lang.Object
-
- com.microej.kf.util.module.ApplicationModule
-
- All Implemented Interfaces:
SandboxedModule
public class ApplicationModule extends java.lang.Object implements SandboxedModule
Application module based on KF.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedApplicationModule(ej.kf.Feature feature)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyPolicy()voidapplyThreadPriority()FileSystemResourcesControllergetFileSystemResourceController()Returns the file system resource controller of this module.java.lang.StringgetIdentifier()Returns the module identifier.ej.kf.ModulegetModule()Returns the associated KF module (aFeaturefor an application module orKernelfor the kernel module.NetResourcesControllergetNetworkResourceController()Returns the network resource controller of this module.ej.kf.Feature.StategetState()Returns the state of the module.
-
-
-
Method Detail
-
getFileSystemResourceController
public FileSystemResourcesController getFileSystemResourceController()
Description copied from interface:SandboxedModuleReturns the file system resource controller of this module.- Specified by:
getFileSystemResourceControllerin interfaceSandboxedModule- Returns:
- the file system resource controller of this module.
-
getNetworkResourceController
public NetResourcesController getNetworkResourceController()
Description copied from interface:SandboxedModuleReturns the network resource controller of this module.- Specified by:
getNetworkResourceControllerin interfaceSandboxedModule- Returns:
- the network resource controller of this module.
-
getIdentifier
public java.lang.String getIdentifier()
Description copied from interface:SandboxedModuleReturns the module identifier.- Specified by:
getIdentifierin interfaceSandboxedModule- Returns:
- the module identifier.
-
getModule
public ej.kf.Module getModule()
Description copied from interface:SandboxedModuleReturns the associated KF module (aFeaturefor an application module orKernelfor the kernel module.- Specified by:
getModulein interfaceSandboxedModule- Returns:
- the associated KF module.
-
getState
public ej.kf.Feature.State getState()
Description copied from interface:SandboxedModuleReturns the state of the module.- Specified by:
getStatein interfaceSandboxedModule- Returns:
- the module state.
-
applyPolicy
public void applyPolicy() throws org.json.me.JSONException, java.io.IOException- Throws:
org.json.me.JSONExceptionjava.io.IOException
-
applyThreadPriority
public void applyThreadPriority()
-
-