public class DefaultPluginTransformer extends Object implements PluginTransformer
| Modifier and Type | Field and Description |
|---|---|
static String |
TRANSFORM_COMPRESSION_LEVEL |
| Constructor and Description |
|---|
DefaultPluginTransformer(OsgiPersistentCache cache,
SystemExports systemExports,
Set<Application> applications,
String pluginDescriptorPath,
OsgiContainerManager osgiContainerManager)
Constructs a transformer with the default stages
|
DefaultPluginTransformer(OsgiPersistentCache cache,
SystemExports systemExports,
Set<Application> applications,
String pluginDescriptorPath,
OsgiContainerManager osgiContainerManager,
List<TransformStage> stages)
Constructs a transformer and its stages
|
| Modifier and Type | Method and Description |
|---|---|
static ArrayList<TransformStage> |
getDefaultTransformStages()
Gets the default list of transform stages performed by the transformer.
|
File |
transform(File pluginJar,
List<HostComponentRegistration> regs)
Transforms the file into an OSGi bundle
|
File |
transform(PluginArtifact pluginArtifact,
List<HostComponentRegistration> regs)
Transforms the file into an OSGi bundle
|
public static final String TRANSFORM_COMPRESSION_LEVEL
public DefaultPluginTransformer(OsgiPersistentCache cache, SystemExports systemExports, Set<Application> applications, String pluginDescriptorPath, OsgiContainerManager osgiContainerManager)
cache - The OSGi cache configuration for transformed pluginssystemExports - The packages the system bundle exportspluginDescriptorPath - The path to the plugin descriptorpublic DefaultPluginTransformer(OsgiPersistentCache cache, SystemExports systemExports, Set<Application> applications, String pluginDescriptorPath, OsgiContainerManager osgiContainerManager, List<TransformStage> stages)
cache - The OSGi cache configuration for transformed pluginssystemExports - The packages the system bundle exportspluginDescriptorPath - The descriptor pathstages - A set of stagespublic static ArrayList<TransformStage> getDefaultTransformStages()
public File transform(File pluginJar, List<HostComponentRegistration> regs) throws PluginTransformationException
pluginJar - The plugin jarregs - The list of registered host componentsPluginTransformationException - If anything goes wrongpublic File transform(PluginArtifact pluginArtifact, List<HostComponentRegistration> regs) throws PluginTransformationException
transform in interface PluginTransformerpluginArtifact - The plugin artifact, usually a jarregs - The list of registered host componentsPluginTransformationException - If anything goes wrongCopyright © 2019 Atlassian. All rights reserved.