View Javadoc

1   package com.atlassian.plugin.osgi.factory.transform;
2   
3   import com.atlassian.plugin.osgi.hostcomponents.HostComponentRegistration;
4   
5   import java.io.File;
6   import java.util.List;
7   
8   /**
9    * Transforms a plugin jar into a proper OSGi bundle
10   */
11  public interface PluginTransformer
12  {
13      /**
14       * Transforms a plugin jar into a proper OSGi bundle
15       *
16       * @param pluginJar The plugin file
17       * @param regs The list of registered host components
18       * @return The transformed OSGi bundle
19       * @throws PluginTransformationException If anything goes wrong
20       */
21      File transform(File pluginJar, List<HostComponentRegistration> regs) throws PluginTransformationException;
22  }