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