com.springsource.bundlor.support.contributors
Class ManifestTemplateDirectiveMigrator

java.lang.Object
  extended by com.springsource.bundlor.support.contributors.ManifestTemplateDirectiveMigrator
All Implemented Interfaces:
ManifestReader, ManifestTemplateModifier, PartialManifestModifier

public class ManifestTemplateDirectiveMigrator
extends java.lang.Object
implements ManifestReader, ManifestTemplateModifier, PartialManifestModifier


Field Summary
private  java.util.List<com.springsource.util.osgi.manifest.parse.HeaderDeclaration> exportPackage
           
private  java.lang.String exportPackageString
           
private  java.util.List<com.springsource.util.osgi.manifest.parse.HeaderDeclaration> importPackage
           
private  java.lang.String importPackageString
           
private  java.lang.Object monitor
           
 
Constructor Summary
ManifestTemplateDirectiveMigrator()
           
 
Method Summary
 void modify(com.springsource.util.parser.manifest.ManifestContents manifestTemplate)
          Modify the manifest template before the template is used to create the bundle manifest
 void modify(ReadablePartialManifest partialManifest)
          Modify the partial manifest before it is used to create the bundle manifest
private  java.util.List<com.springsource.util.osgi.manifest.parse.HeaderDeclaration> parseTemplate(java.lang.String template)
           
 void readJarManifest(com.springsource.util.parser.manifest.ManifestContents manifest)
          Read the source JAR's manifest before it is used to create the bundle manifest
 void readManifestTemplate(com.springsource.util.parser.manifest.ManifestContents manifestTemplate)
          Read the manifest template before it is used to create the bundle manifest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

importPackageString

private volatile java.lang.String importPackageString

exportPackageString

private volatile java.lang.String exportPackageString

importPackage

private final java.util.List<com.springsource.util.osgi.manifest.parse.HeaderDeclaration> importPackage

exportPackage

private final java.util.List<com.springsource.util.osgi.manifest.parse.HeaderDeclaration> exportPackage

monitor

private final java.lang.Object monitor
Constructor Detail

ManifestTemplateDirectiveMigrator

public ManifestTemplateDirectiveMigrator()
Method Detail

readJarManifest

public void readJarManifest(com.springsource.util.parser.manifest.ManifestContents manifest)
Description copied from interface: ManifestReader
Read the source JAR's manifest before it is used to create the bundle manifest

Specified by:
readJarManifest in interface ManifestReader
Parameters:
manifest - the JAR manifest

readManifestTemplate

public void readManifestTemplate(com.springsource.util.parser.manifest.ManifestContents manifestTemplate)
Description copied from interface: ManifestReader
Read the manifest template before it is used to create the bundle manifest

Specified by:
readManifestTemplate in interface ManifestReader
Parameters:
manifestTemplate - the manifest template

modify

public void modify(com.springsource.util.parser.manifest.ManifestContents manifestTemplate)
Description copied from interface: ManifestTemplateModifier
Modify the manifest template before the template is used to create the bundle manifest

Specified by:
modify in interface ManifestTemplateModifier
Parameters:
manifestTemplate - the template to modify

modify

public void modify(ReadablePartialManifest partialManifest)
Description copied from interface: PartialManifestModifier
Modify the partial manifest before it is used to create the bundle manifest

Specified by:
modify in interface PartialManifestModifier
Parameters:
partialManifest - the partial manifest to modify

parseTemplate

private java.util.List<com.springsource.util.osgi.manifest.parse.HeaderDeclaration> parseTemplate(java.lang.String template)