com.flexive.shared.configuration
Interface ParameterData<T>

Type Parameters:
T - parameter value type
All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ParameterDataBean, ParameterDataEditBean

public interface ParameterData<T>
extends java.io.Serializable

Interface for a container holding path, key and default value of a parameter.

Author:
Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Method Summary
 T getDefaultValue()
          Returns the default value of the parameter.
 java.lang.String getKey()
          Returns the key associated with the parameter.
 ParameterPath getPath()
          Returns the path object associated with the parameter.
 boolean isCached()
          Should this parameter be cached once it has been retrieved? By default all parameters are cached, but you can disable this for individual parameters that are seldom used or very large.
 

Method Detail

getPath

ParameterPath getPath()
Returns the path object associated with the parameter.

Returns:
the path object associated with the parameter.

getKey

java.lang.String getKey()
Returns the key associated with the parameter.

Returns:
the key associated with the parameter.

getDefaultValue

T getDefaultValue()
Returns the default value of the parameter.

Returns:
the default value of the parameter.

isCached

boolean isCached()
Should this parameter be cached once it has been retrieved? By default all parameters are cached, but you can disable this for individual parameters that are seldom used or very large.

Returns:
true if this parameter should be cached. If false, each lookup is performed directly on the database.
Since:
3.1.4