com.springsource.bundlor.properties
Interface PropertiesSource

All Known Implementing Classes:
PropertySetPropertiesSource, StandardPropertiesSource, SystemPropertiesSource

public interface PropertiesSource

Describes a source for manifest property values. Those values will be replaced in the template manifest prior to generating the final manifest. Concurrent Semantics
Implementations need to be threadsafe.

Author:
Christian Dupuis

Method Summary
 int getPriority()
          Returns the priority of this PropertiesSource instance.
 java.util.Properties getProperties()
          Returns the full-constructed Properties instance.
 

Method Detail

getPriority

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.

Returns:
the priority

getProperties

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

Returns:
the Properties instance created by this PropertiesSource