Modifier and Type | Method and Description |
---|---|
static Feature[] |
Kernel.getAllLoadedFeatures()
Returns the set of Features currently loaded.
|
Feature |
AlreadyLoadedFeatureException.getFeature()
Returns the previously loaded
Feature . |
static Feature |
Kernel.install(java.io.InputStream is)
Installs a Feature from an
InputStream . |
static Feature |
Kernel.load(java.io.InputStream is)
Installs a Feature from an
InputStream and starts it. |
Modifier and Type | Method and Description |
---|---|
static <T> T |
Kernel.bind(T o,
java.lang.Class<T> targetType,
Feature targetOwner)
Binds an
Object owned by a Feature to another Feature. |
static boolean |
Kernel.canUninstall(Feature f)
Tells whether the given Feature can be uninstalled.
|
T |
Converter.convert(T source,
Feature targetOwner)
Converts an object owned by a Feature to another Feature.
|
void |
ResourceControlListener.featureStopped(Feature feature,
ResourceControlListener.StopCause cause)
Called when a Feature is stopped by the Resource Control Manager.
|
static java.lang.Class<?> |
Kernel.getEquivalentSharedInterface(java.lang.Class<?> si,
Feature target)
Gets the equivalent shared interface in the given target Feature.
|
static java.lang.Class<?> |
Kernel.getSharedInterface(java.lang.Class<?> si,
java.lang.Class<?> topInterface,
Feature target)
From a shared interface, gets the closest shared interface in the given target Feature.
|
void |
FeatureStateListener.stateChanged(Feature feature,
Feature.State previousState)
Called when the state of a Feature has changed.
|
void |
UncaughtExceptionHandler.uncaughtException(Feature f,
java.lang.Thread t,
java.lang.Throwable e)
Deprecated.
Method invoked when the given thread terminates due to the given uncaught
exception.
|
static void |
Kernel.uninstall(Feature f)
Uninstalls a Feature.
|
static boolean |
Kernel.unload(Feature f)
Stops a Feature and uninstalls it if its state is
Feature.State.INSTALLED after stop() . |
Constructor and Description |
---|
AlreadyLoadedFeatureException(Feature feature)
Creates an
AlreadyLoadedFeatureException with the previously loaded Feature . |