Package org.apache.sling.commons.osgi
Class BundleFileProcessor
java.lang.Object
org.apache.sling.commons.osgi.BundleFileProcessor
- Direct Known Subclasses:
BSNRenamer
The
BundleFileProcessor
can transform a bundle Manifest
by creating a modified copy of the bundle file.- Since:
- 2.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
getTargetFilename
(Manifest inputJarManifest) Return the filename to use for the newly created bundle fileprocess()
Creates a new OSGi Bundle from a given bundle, processing its manifest using the processManifest method.protected abstract Manifest
processManifest
(Manifest originalManifest) Process the bundle Manifest.
-
Constructor Details
-
BundleFileProcessor
-
-
Method Details
-
processManifest
Process the bundle Manifest. Can return the original one if no changes are needed.- Parameters:
originalManifest
- The manifest to process- Returns:
- The processed manifest.
-
getTargetFilename
Return the filename to use for the newly created bundle file- Parameters:
inputJarManifest
- The manifest- Returns:
- The filename
-
process
Creates a new OSGi Bundle from a given bundle, processing its manifest using the processManifest method.- Returns:
- The new bundle file
- Throws:
IOException
- If something goes wrong reading or writing.
-