com.springsource.bundlor.support.propertysubstitution
Class PlaceholderManifestAndTemplateModifier

java.lang.Object
  extended by com.springsource.bundlor.support.propertysubstitution.PlaceholderManifestAndTemplateModifier
All Implemented Interfaces:
ManifestModifier, ManifestTemplateModifier, TemplateHeaderReader

public final class PlaceholderManifestAndTemplateModifier
extends java.lang.Object
implements ManifestModifier, ManifestTemplateModifier, TemplateHeaderReader

An implementation of ManifestTemplateModifier that substitutes property values in for place holder values

Concurrent Semantics
Threadsafe

Author:
Ben Hale

Field Summary
private  java.util.Properties properties
           
 
Constructor Summary
PlaceholderManifestAndTemplateModifier(java.util.Properties properties)
           
 
Method Summary
 java.util.List<java.lang.String> getTemplateOnlyHeaderNames()
          Gets the list of header names required by this reader.
 void modify(com.springsource.util.parser.manifest.ManifestContents manifest)
          Modify the JAR manifest 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

properties

private final java.util.Properties properties
Constructor Detail

PlaceholderManifestAndTemplateModifier

public PlaceholderManifestAndTemplateModifier(java.util.Properties properties)
Method Detail

modify

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

Specified by:
modify in interface ManifestModifier
Specified by:
modify in interface ManifestTemplateModifier
Parameters:
manifest - the manifest to modify

getTemplateOnlyHeaderNames

public java.util.List<java.lang.String> getTemplateOnlyHeaderNames()
Description copied from interface: TemplateHeaderReader
Gets the list of header names required by this reader.

Specified by:
getTemplateOnlyHeaderNames in interface TemplateHeaderReader
Returns:
The list of header names.