public interface ContentHandler
CONTENT_TYPE_PROPERTY property indicating the content type this
handler must be invoked for.
Custom content embedded inside an subsystem archive (e.g. .esa file) must be declared
in the Subsystem-Content header where the EMBEDDED_RESOURCE_ATTRIBUTE can
be used to associate it with the name of a file inside the archive.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTENT_TYPE_PROPERTY |
static java.lang.String |
EMBEDDED_RESOURCE_ATTRIBUTE |
| Modifier and Type | Method and Description |
|---|---|
void |
install(java.io.InputStream is,
java.lang.String symbolicName,
java.lang.String contentType,
Subsystem subsystem,
org.osgi.service.coordinator.Coordination coordination)
Install this custom content.
|
void |
start(java.lang.String symbolicName,
java.lang.String contentType,
Subsystem subsystem,
org.osgi.service.coordinator.Coordination coordination)
Start this custom content.
|
void |
stop(java.lang.String symbolicName,
java.lang.String contentType,
Subsystem subsystem)
Stop this custom content.
|
void |
uninstall(java.lang.String symbolicName,
java.lang.String contentType,
Subsystem subsystem)
Uninstall this custom content.
|
static final java.lang.String CONTENT_TYPE_PROPERTY
static final java.lang.String EMBEDDED_RESOURCE_ATTRIBUTE
void install(java.io.InputStream is,
java.lang.String symbolicName,
java.lang.String contentType,
Subsystem subsystem,
org.osgi.service.coordinator.Coordination coordination)
is - An input stream to the content.symbolicName - The name of the content.contentType - The type of the content.subsystem - The target subsystem.coordination - The current coordination. Can be used to register a compensation in case of
failure or to fail the installation action.void start(java.lang.String symbolicName,
java.lang.String contentType,
Subsystem subsystem,
org.osgi.service.coordinator.Coordination coordination)
symbolicName - The name of the content.contentType - The type of the content.subsystem - The target subsystem.coordination - The current coordination. Can be used to register a compensation in case of
failure or to fail the start action.void stop(java.lang.String symbolicName,
java.lang.String contentType,
Subsystem subsystem)
symbolicName - The name of the content.contentType - The type of the content.subsystem - The target subsystem.void uninstall(java.lang.String symbolicName,
java.lang.String contentType,
Subsystem subsystem)
symbolicName - The name of the content.contentType - The type of the content.subsystem - The target subsystem.Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.