nl.knowledgeplaza.util.configuration
Class ConfigurationProviderPropertyFile

java.lang.Object
  extended by nl.knowledgeplaza.util.configuration.ConfigurationProviderAbstract
      extended by nl.knowledgeplaza.util.configuration.ConfigurationProviderPropertyFile

public class ConfigurationProviderPropertyFile
extends ConfigurationProviderAbstract

Read configuration data from a property file. This reads ALL files it can find on the classpath. This uses the Properties class to allow filtering and encryption.

Author:
toeu

Field Summary
static String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Fields inherited from class nl.knowledgeplaza.util.configuration.ConfigurationProviderAbstract
log4j, log4jHit, log4jTrace
 
Constructor Summary
ConfigurationProviderPropertyFile(Configuration configuration, URL url)
          create and initialize with default settings
 
Method Summary
 String describe()
           
static List<ConfigurationProviderAbstract> findProviders(Configuration configuration)
           
 String get(String propertyName)
           
 Map<String,String> getCollection(String prefix)
           
 URL getURL()
          URL
 void setURL(URL value)
           
 ConfigurationProviderPropertyFile withURL(URL value)
           
 
Methods inherited from class nl.knowledgeplaza.util.configuration.ConfigurationProviderAbstract
findUrls, getConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

ConfigurationProviderPropertyFile

public ConfigurationProviderPropertyFile(Configuration configuration,
                                         URL url)
create and initialize with default settings

Method Detail

getURL

public URL getURL()
URL


setURL

public void setURL(URL value)

withURL

public ConfigurationProviderPropertyFile withURL(URL value)

findProviders

public static List<ConfigurationProviderAbstract> findProviders(Configuration configuration)

get

public String get(String propertyName)
Specified by:
get in class ConfigurationProviderAbstract

getCollection

public Map<String,String> getCollection(String prefix)
Specified by:
getCollection in class ConfigurationProviderAbstract

describe

public String describe()
Specified by:
describe in class ConfigurationProviderAbstract


Copyright © 2011 KnowledgePlaza. All Rights Reserved.