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 Object implements SandboxedModule
Application module based on KF.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedApplicationModule(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.StringgetIdentifier()Returns the module identifier.ModulegetModule()NetResourcesControllergetNetworkResourceController()Returns the network resource controller of this module.Feature.StategetState()Returns the state of the module.
-
-
-
Constructor Detail
-
ApplicationModule
protected ApplicationModule(Feature feature)
-
-
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 String getIdentifier()
Description copied from interface:SandboxedModuleReturns the module identifier.- Specified by:
getIdentifierin interfaceSandboxedModule- Returns:
- the module identifier.
-
getModule
public 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 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 JSONException, IOException- Throws:
JSONExceptionIOException
-
applyThreadPriority
public void applyThreadPriority()
-
-