com.atlassian.plugin.osgi.factory.transform
Class DefaultPluginTransformer

java.lang.Object
  extended by com.atlassian.plugin.osgi.factory.transform.DefaultPluginTransformer
All Implemented Interfaces:
PluginTransformer

public class DefaultPluginTransformer
extends java.lang.Object
implements PluginTransformer

Default implementation of plugin transformation that uses BND to generate the manifest and manually creates the spring configuration file.


Constructor Summary
DefaultPluginTransformer()
           
 
Method Summary
 java.io.File transform(java.io.File pluginJar, 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

DefaultPluginTransformer

public DefaultPluginTransformer()
Method Detail

transform

public java.io.File transform(java.io.File pluginJar,
                              java.util.List<HostComponentRegistration> regs)
                       throws PluginTransformationException
Transforms the file into an OSGi bundle

Specified by:
transform in interface PluginTransformer
Parameters:
pluginJar - The plugin jar
regs - The list of registered host components
Returns:
The new OSGi-enabled plugin jar
Throws:
PluginTransformationException - If anything goes wrong


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.