com.springsource.bundlor.ant.internal.support
Class PropertyPropertiesSource

java.lang.Object
  extended by com.springsource.bundlor.ant.internal.support.PropertyPropertiesSource
All Implemented Interfaces:
PropertiesSource

public class PropertyPropertiesSource
extends java.lang.Object
implements PropertiesSource


Field Summary
private  java.util.Properties properties
           
 
Constructor Summary
PropertyPropertiesSource(java.util.List<org.apache.tools.ant.taskdefs.Property> properties)
          Create a new PropertiesPropertiesSource with the given Propertys.
 
Method Summary
 int getPriority()
          Returns the priority of this PropertiesSource instance.
 java.util.Properties getProperties()
          Returns the full-constructed Properties instance.
 
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

PropertyPropertiesSource

public PropertyPropertiesSource(java.util.List<org.apache.tools.ant.taskdefs.Property> properties)
Create a new PropertiesPropertiesSource with the given Propertys.

Parameters:
propertySets - list of PropertySets
Method Detail

getPriority

public int getPriority()
Returns the priority of this PropertiesSource instance. The priority describes the order in which all PropertiesSources will be merged into the final Properties instance.

A lower priority means that the PropertiesSource's Properties instance will be added to the merged Properties instance prior to PropertiesSources with higher priority. For example the properties returned by System.getProperties() are likely to have the lowest priority to be able to override those by user specified values.

Specified by:
getPriority in interface PropertiesSource
Returns:
the priority

getProperties

public java.util.Properties getProperties()
Returns the full-constructed Properties instance.

Specified by:
getProperties in interface PropertiesSource
Returns:
the Properties instance created by this PropertiesSource