public final class

TransformContext

extends Object
java.lang.Object
   ↳ com.atlassian.plugin.osgi.factory.transform.TransformContext

Class Overview

The transform context containing any configuration necessary to enact a JAR transformation.

Summary

Public Constructors
TransformContext(List<HostComponentRegistration> regs, SystemExports systemExports, PluginArtifact pluginArtifact, Set<String> applicationKeys, String descriptorPath, OsgiContainerManager osgiContainerManager)
Public Methods
void addBundleClasspathJar(String classpath)
void addRequiredHostComponent(HostComponentRegistration hostComponent)
boolean beanExists(String name)
Check if the bean has been tracked.
Set<String> getApplicationKeys()
Map<StringString> getBndInstructions()
Set<String> getBundleClassPathJars()
Map<StringComponentImport> getComponentImports()
Document getDescriptorDocument()
List<String> getExtraExports()
List<String> getExtraImports()
Map<String, byte[]> getFileOverrides()
List<HostComponentRegistration> getHostComponentRegistrations()
Manifest getManifest()
OsgiContainerManager getOsgiContainerManager()
PluginArtifact getPluginArtifact()
File getPluginFile()
Iterable<JarEntry> getPluginJarEntries()
JarEntry getPluginJarEntry(String path)
Set<HostComponentRegistration> getRequiredHostComponents()
SystemExports getSystemExports()
void setShouldRequireSpring(boolean shouldRequireSpring)
boolean shouldRequireSpring()
void trackBean(String name, String source)
Track a bean by remembering its name and source.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TransformContext (List<HostComponentRegistration> regs, SystemExports systemExports, PluginArtifact pluginArtifact, Set<String> applicationKeys, String descriptorPath, OsgiContainerManager osgiContainerManager)

Public Methods

public void addBundleClasspathJar (String classpath)

public void addRequiredHostComponent (HostComponentRegistration hostComponent)

public boolean beanExists (String name)

Check if the bean has been tracked. This is used for testing only.

Parameters
name the bean name.

public Set<String> getApplicationKeys ()

public Map<StringString> getBndInstructions ()

public Set<String> getBundleClassPathJars ()

public Map<StringComponentImport> getComponentImports ()

public Document getDescriptorDocument ()

public List<String> getExtraExports ()

public List<String> getExtraImports ()

public Map<String, byte[]> getFileOverrides ()

public List<HostComponentRegistration> getHostComponentRegistrations ()

public Manifest getManifest ()

public OsgiContainerManager getOsgiContainerManager ()

public PluginArtifact getPluginArtifact ()

public File getPluginFile ()

public Iterable<JarEntry> getPluginJarEntries ()

public JarEntry getPluginJarEntry (String path)

public Set<HostComponentRegistration> getRequiredHostComponents ()

public SystemExports getSystemExports ()

public void setShouldRequireSpring (boolean shouldRequireSpring)

public boolean shouldRequireSpring ()

public void trackBean (String name, String source)

Track a bean by remembering its name and source. If there is already a bean with the same name, PluginTransformationException will be raised.

Parameters
name id, name, or alias of the bean = basically any names which can be used to refer to the bean in Spring context.
source the source of the bean.