de.twenty11.skysail.server.services
Interface ConfigService


public interface ConfigService

Defines a configuration service which will return values (strings, properties, ...) for a given identifier.

Author:
carsten

Method Summary
 Properties getProperties(String identifier)
          return properties for given identifier.
 String getString(String identifier)
          looks for identifier and returns the value.
 String getString(String identifier, String defaultValue)
          looks for identifier and returns the value.
 

Method Detail

getString

String getString(String identifier)
looks for identifier and returns the value.

Parameters:
identifier - key
Returns:
the value for the identifier, null if not found

getString

String getString(String identifier,
                 String defaultValue)
looks for identifier and returns the value.

Parameters:
identifier - key
defaultValue - the value to use if key is not found
Returns:
the value for the identifier

getProperties

Properties getProperties(String identifier)
return properties for given identifier.

Parameters:
identifier - the key for the properties
Returns:
a properties object containing the keys/values for the given identifier


Copyright © 2011-2013. All Rights Reserved.