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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetTargetFilename(Manifest inputJarManifest) Return the filename to use for the newly created bundle fileprotected ManifestprocessManifest(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:BundleFileProcessorProcess the bundle Manifest. Can return the original one if no changes are needed.- Specified by:
processManifestin classBundleFileProcessor- Parameters:
inputMF- The manifest to process- Returns:
- The processed manifest.
-
getTargetFilename
Description copied from class:BundleFileProcessorReturn the filename to use for the newly created bundle file- Specified by:
getTargetFilenamein classBundleFileProcessor- Parameters:
inputJarManifest- The manifest- Returns:
- The filename
-