1 package com.atlassian.plugin.osgi.loader.transform;
2
3 import com.atlassian.plugin.classloader.PluginClassLoader;
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 /**
15 * Transforms a plugin jar into a proper OSGi bundle
16 *
17 * @param pluginJar The plugin file
18 * @param regs The list of registered host components
19 * @return The transformed OSGi bundle
20 * @throws PluginTransformationException If anything goes wrong
21 */
22 File transform(File pluginJar, List<HostComponentRegistration> regs) throws PluginTransformationException;
23 }