de.smartics.properties.spi.config.resolve
Interface ResolveContext

Package class diagram package ResolveContext
All Superinterfaces:
Serializable
All Known Implementing Classes:
ConfigurationPropertiesResolveContext

public interface ResolveContext
     
     
extends Serializable

Provides access to property names to their values. Used for resolver to resolve placeholders by their values.


Method Summary
 String get(String key)
          Returns the value for the given key.
 ConfigurationKey<?> getKey()
          Returns the unique identifier of the wrapped properties configuration.
 

Method Detail

getKey

ConfigurationKey<?> getKey()
Returns the unique identifier of the wrapped properties configuration.

Returns:
the unique identifier of the wrapped properties configuration.

get

String get(String key)
           throws IllegalArgumentException,
                  UnknownPropertyException,
                  PropertyValidationException
Returns the value for the given key.

Parameters:
key - the key to the requested value.
Returns:
the requested value or null if there is no value for that key (but the key is known).
Throws:
IllegalArgumentException - if key is blank.
UnknownPropertyException - if key is not known.
PropertyValidationException - if the property is invalid according to its constraints.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.