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 java.lang.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)
           
 java.util.List<TaggedPropertySet> parseConfiguration()
           
protected  java.util.Properties parseProperties(java.util.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 java.util.List<TaggedPropertySet> parseConfiguration()
Specified by:
parseConfiguration in interface ConfigurationStore

parseProperties

protected java.util.Properties parseProperties(java.util.Properties props)
Used by sublclasses

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


Copyright © 2008-2011. All Rights Reserved.