Package org.apache.sling.commons.osgi
Class BSNRenamer
java.lang.Object
org.apache.sling.commons.osgi.BundleFileProcessor
org.apache.sling.commons.osgi.BSNRenamer
Processes a bundle file by changing its Bundle-SymbolicName.
The original BSN is copied to a an
X_ORIG_BSN
header,
to allow users to find out what happened.- Since:
- 2.4
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getTargetFilename
(Manifest inputJarManifest) Return the filename to use for the newly created bundle fileprotected Manifest
processManifest
(Manifest inputMF) Process the bundle Manifest.Methods inherited from class org.apache.sling.commons.osgi.BundleFileProcessor
process
-
Field Details
-
BUNDLE_SYMBOLIC_NAME
- See Also:
-
X_ORIG_BSN
- See Also:
-
BUNDLE_VERSION
- See Also:
-
-
Constructor Details
-
BSNRenamer
-
-
Method Details
-
processManifest
Description copied from class:BundleFileProcessor
Process the bundle Manifest. Can return the original one if no changes are needed.- Specified by:
processManifest
in classBundleFileProcessor
- Parameters:
inputMF
- The manifest to process- Returns:
- The processed manifest.
-
getTargetFilename
Description copied from class:BundleFileProcessor
Return the filename to use for the newly created bundle file- Specified by:
getTargetFilename
in classBundleFileProcessor
- Parameters:
inputJarManifest
- The manifest- Returns:
- The filename
-