Class TransformContext
java.lang.Object
com.atlassian.plugin.osgi.internal.factory.transform.TransformContext
The transform context containing any configuration necessary to enact a JAR transformation.
- Since:
- 2.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionTransformContext(List<HostComponentRegistration> regs, SystemExports systemExports, PluginArtifact pluginArtifact, Set<Application> applications, String descriptorPath, OsgiContainerManager osgiContainerManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBundleClasspathJar(String classpath) voidaddRequiredHostComponent(HostComponentRegistration hostComponent) booleanbeanExists(String name) Check if the bean has been tracked.org.dom4j.DocumentgetPluginJarEntry(String path) voidsetShouldRequireSpring(boolean shouldRequireSpring) booleanvoidTrack a bean by remembering its name and source.
-
Constructor Details
-
TransformContext
public TransformContext(List<HostComponentRegistration> regs, SystemExports systemExports, PluginArtifact pluginArtifact, Set<Application> applications, String descriptorPath, OsgiContainerManager osgiContainerManager)
-
-
Method Details
-
getPluginFile
-
getPluginArtifact
-
getHostComponentRegistrations
-
getFileOverrides
-
getBndInstructions
-
getDescriptorDocument
public org.dom4j.Document getDescriptorDocument() -
getManifest
-
getExtraImports
-
getExtraExports
-
addBundleClasspathJar
-
getBundleClassPathJars
-
getComponentImports
-
getSystemExports
-
getApplications
-
shouldRequireSpring
public boolean shouldRequireSpring() -
setShouldRequireSpring
public void setShouldRequireSpring(boolean shouldRequireSpring) -
getOsgiContainerManager
-
getPluginJarEntries
-
getPluginJarEntry
-
addRequiredHostComponent
-
getRequiredHostComponents
-
trackBean
Track a bean by remembering its name and source. If there is already a bean with the same name,PluginTransformationExceptionwill 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.
-
beanExists
Check if the bean has been tracked. This is used for testing only.- Parameters:
name- the bean name.
-
getInstallationMode
-