org.constretto.internal.store
Class PropertiesStore

java.lang.Object
  extended by org.constretto.internal.store.PropertiesStore
All Implemented Interfaces:
ConfigurationStore
Direct Known Subclasses:
EncryptedPropertiesStore

public class PropertiesStore
extends Object
implements ConfigurationStore

This is a store for text files implementing key=value pairs. Also, it supports adding a convention of tgsa to ordinary properties. For tags, we use a specific prefix which can be configured by the user, whose default value is "@".

Please see ConstrettoBuilder.addCurrentTag(String) for more information on the tag concept.

Author:
Kristoffer Moum

Constructor Summary
PropertiesStore()
           
 
Method Summary
 PropertiesStore addResource(Resource resource)
           
 List<TaggedPropertySet> parseConfiguration()
           
protected  Properties parseProperties(Properties props)
          Used by sublclasses
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesStore

public PropertiesStore()
Method Detail

addResource

public PropertiesStore addResource(Resource resource)

parseConfiguration

public List<TaggedPropertySet> parseConfiguration()
Specified by:
parseConfiguration in interface ConfigurationStore

parseProperties

protected Properties parseProperties(Properties props)
Used by sublclasses

Parameters:
props - the properties currently read
Returns:
the argument


Copyright © 2008-2013. All Rights Reserved.