public abstract static class LocalContext.Parameter<T> extends Configurable<T>
configurable
parameter whose value can
be locally superseded within the scope of LocalContext
.Configurable.Listener
Modifier and Type | Field and Description |
---|---|
static SecurityContext.Permission<LocalContext.Parameter<?>> |
SUPERSEDE_PERMISSION
Holds the general permission to supersede any parameter value
(action "supersede").
|
RECONFIGURE_PERMISSION
Constructor and Description |
---|
LocalContext.Parameter(T defaultValue)
Creates a parameter having the specified default value
(configurable).
|
Modifier and Type | Method and Description |
---|---|
T |
get()
Returns the current parameter value (the
default
value if not superseded ). |
T |
getDefault()
Returns this parameter default value (configurable).
|
SecurityContext.Permission<LocalContext.Parameter<T>> |
getSupersedePermission()
Returns the permission to locally supersede the current value
of this instance.
|
getName, getReconfigurePermission, parse, reconfigure
public static final SecurityContext.Permission<LocalContext.Parameter<?>> SUPERSEDE_PERMISSION
public LocalContext.Parameter(T defaultValue)
public SecurityContext.Permission<LocalContext.Parameter<T>> getSupersedePermission()
public T get()
default
value if not superseded
).get
in class Configurable<T>
public T getDefault()
Copyright © 2005-2013 Javolution. All Rights Reserved.