|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.osgi.factory.transform.DefaultPluginTransformer
public class DefaultPluginTransformer
Default implementation of plugin transformation that uses stages to convert a plain JAR into an OSGi bundle.
| Constructor Summary | |
|---|---|
DefaultPluginTransformer(OsgiPersistentCache cache,
SystemExports systemExports,
java.util.Set<java.lang.String> applicationKeys,
java.lang.String pluginDescriptorPath,
OsgiContainerManager osgiContainerManager)
Constructs a transformer with the default stages |
|
DefaultPluginTransformer(OsgiPersistentCache cache,
SystemExports systemExports,
java.util.Set<java.lang.String> applicationKeys,
java.lang.String pluginDescriptorPath,
OsgiContainerManager osgiContainerManager,
java.util.List<TransformStage> stages)
Constructs a transformer and its stages |
|
| Method Summary | |
|---|---|
java.io.File |
transform(java.io.File pluginJar,
java.util.List<HostComponentRegistration> regs)
Transforms the file into an OSGi bundle |
java.io.File |
transform(PluginArtifact pluginArtifact,
java.util.List<HostComponentRegistration> regs)
Transforms the file into an OSGi bundle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPluginTransformer(OsgiPersistentCache cache,
SystemExports systemExports,
java.util.Set<java.lang.String> applicationKeys,
java.lang.String pluginDescriptorPath,
OsgiContainerManager osgiContainerManager)
cache - The OSGi cache configuration for transformed pluginssystemExports - The packages the system bundle exportspluginDescriptorPath - The path to the plugin descriptor
public DefaultPluginTransformer(OsgiPersistentCache cache,
SystemExports systemExports,
java.util.Set<java.lang.String> applicationKeys,
java.lang.String pluginDescriptorPath,
OsgiContainerManager osgiContainerManager,
java.util.List<TransformStage> stages)
cache - The OSGi cache configuration for transformed pluginssystemExports - The packages the system bundle exportspluginDescriptorPath - The descriptor pathstages - A set of stages| Method Detail |
|---|
public java.io.File transform(java.io.File pluginJar,
java.util.List<HostComponentRegistration> regs)
throws PluginTransformationException
pluginJar - The plugin jarregs - The list of registered host components
PluginTransformationException - If anything goes wrong
public java.io.File transform(PluginArtifact pluginArtifact,
java.util.List<HostComponentRegistration> regs)
throws PluginTransformationException
transform in interface PluginTransformerpluginArtifact - The plugin artifact, usually a jarregs - The list of registered host components
PluginTransformationException - If anything goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||