de.smartics.properties.spi.config.definition
Class OneKeyPropertiesDefinitionContext
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneKeyPropertiesDefinitionContext
public OneKeyPropertiesDefinitionContext(ConfigurationKey<?> configurationKey)
-
Default constructor.
-
Parameters:
-
configurationKey
- the configuration key returned for any path. May be
null
.
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.