com.atlassian.plugin.osgi.factory.transform
Class TransformContext
java.lang.Object
com.atlassian.plugin.osgi.factory.transform.TransformContext
public final class TransformContext
- extends Object
The transform context containing any configuration necessary to enact a JAR transformation.
- Since:
- 2.2.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformContext
public TransformContext(List<HostComponentRegistration> regs,
SystemExports systemExports,
PluginArtifact pluginArtifact,
Set<Application> applications,
String descriptorPath,
OsgiContainerManager osgiContainerManager)
getPluginFile
public File getPluginFile()
getPluginArtifact
public PluginArtifact getPluginArtifact()
getHostComponentRegistrations
public List<HostComponentRegistration> getHostComponentRegistrations()
getFileOverrides
public Map<String,byte[]> getFileOverrides()
getBndInstructions
public Map<String,String> getBndInstructions()
getDescriptorDocument
public org.dom4j.Document getDescriptorDocument()
getManifest
public Manifest getManifest()
getExtraImports
public List<String> getExtraImports()
getExtraExports
public List<String> getExtraExports()
addBundleClasspathJar
public void addBundleClasspathJar(String classpath)
getBundleClassPathJars
public Set<String> getBundleClassPathJars()
getComponentImports
public Map<String,ComponentImport> getComponentImports()
getSystemExports
public SystemExports getSystemExports()
getApplications
public Set<Application> getApplications()
shouldRequireSpring
public boolean shouldRequireSpring()
setShouldRequireSpring
public void setShouldRequireSpring(boolean shouldRequireSpring)
getOsgiContainerManager
public OsgiContainerManager getOsgiContainerManager()
getPluginJarEntries
public Iterable<JarEntry> getPluginJarEntries()
getPluginJarEntry
public JarEntry getPluginJarEntry(String path)
addRequiredHostComponent
public void addRequiredHostComponent(HostComponentRegistration hostComponent)
getRequiredHostComponents
public Set<HostComponentRegistration> getRequiredHostComponents()
trackBean
public void trackBean(String name,
String source)
throws PluginTransformationException
- 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.
- Throws:
PluginTransformationException
beanExists
public boolean beanExists(String name)
- Check if the bean has been tracked.
This is used for testing only.
- Parameters:
name - the bean name.
getInstallationMode
public InstallationMode getInstallationMode()
Copyright © 2015 Atlassian. All rights reserved.