uk.co.jcp.util.properties
Interface JCPPropertyFactory


public interface JCPPropertyFactory

Interface for Property Factories


Method Summary
 JCPProperties getInstance(java.lang.String source)
          Get an instance of the properties from the specified source
 JCPProperties getInstance(java.lang.String source, JCPProperties parentProperties)
          Get an instance of the properties from the specified source
 java.lang.String getResourceType()
          Get the resource identifier for the resource that this factory supports
 

Method Detail

getInstance

public JCPProperties getInstance(java.lang.String source)
                          throws PropertyException
Get an instance of the properties from the specified source
Parameters:
source - an identifier for the property source (e.g. a filename)
Throws:
PropertyException - if the instance could not be created

getInstance

public JCPProperties getInstance(java.lang.String source,
                                 JCPProperties parentProperties)
                          throws PropertyException
Get an instance of the properties from the specified source
Parameters:
source - an identifier for the property source (e.g. a filename)
parentProperties - the properties from which the new properties should be chained
Throws:
PropertyException - if the instance could not be created

getResourceType

public java.lang.String getResourceType()
Get the resource identifier for the resource that this factory supports
Returns:
the resource identifier