de.smartics.properties.spi.config.definition
Class OneKeyPropertiesDefinitionContext

Package class diagram package OneKeyPropertiesDefinitionContext
java.lang.Object
  extended by de.smartics.properties.spi.config.definition.OneKeyPropertiesDefinitionContext
All Implemented Interfaces:
PropertiesDefinitionContext, Serializable

public final class OneKeyPropertiesDefinitionContext
     
     
extends Object
implements PropertiesDefinitionContext

Maps any path to the preconfigured configuration key.

See Also:
Serialized Form

Constructor Summary
OneKeyPropertiesDefinitionContext(ConfigurationKey<?> configurationKey)
          Default constructor.
 
Method Summary
 ConfigurationKey<?> getKey(String path)
          Returns the configuration key associated with the given path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneKeyPropertiesDefinitionContext

public OneKeyPropertiesDefinitionContext(ConfigurationKey<?> configurationKey)
Default constructor.

Parameters:
configurationKey - the configuration key returned for any path. May be null.
Method Detail

getKey

@CheckForNull
public ConfigurationKey<?> getKey(String path)
Description copied from interface: PropertiesDefinitionContext
Returns the configuration key associated with the given path.

Specified by:
getKey in interface PropertiesDefinitionContext
Parameters:
path - the path to fetch its configuration key. Note that a null value is allowed.
Returns:
the configuration key for the given path or null if no key is associated with it.


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