Javolution 6.0.0 java
|
Public Member Functions | |
Parameter () | |
Permission< Parameter< T > > | getSupersedePermission () |
T | get () |
String | getName () |
Permission< Configurable< T > > | getReconfigurePermission () |
T | reconfigure (T newValue) |
Static Public Attributes | |
static final Permission< Parameter<?> > | SUPERSEDE_PERMISSION |
static Permission< Configurable<?> > | RECONFIGURE_PERMISSION |
Protected Member Functions | |
abstract T | getDefault () |
T | initialized (T value) |
T | parse (String str) |
T | reconfigured (T oldValue, T newValue) |
Private Attributes | |
final Permission< Parameter< T > > | supersedePermission |
String | name |
final Permission< Configurable< T > > | reconfigurePermission |
volatile T | value |
A configurable parameter whose value can be locally superseded within the scope of LocalContext.
Definition at line 49 of file LocalContext.java.
T javolution.context.LocalContext.Parameter< T >.get | ( | ) |
Returns the current parameter value (the default value if not reconfigured nor superseded).
Reimplemented from javolution.lang.Configurable< T >.
Definition at line 83 of file LocalContext.java.
References javolution.context.AbstractContext.current(), and javolution.context.LocalContext.getValue().
|
abstractprotectedinherited |
Returns this configurable default value (always different from
).
Referenced by javolution.lang.Configurable< javolution.context.LogContext.Level >.Configurable(), and javolution.lang.Configurable< javolution.context.LogContext.Level >.parse().
|
inherited |
Returns this configurable name. By convention, the name of the configurable is the name of the static field holding the configurable (e.g. "javolution.context.ConcurrentContext#CONCURRENCY"). This method should be overridden if the enclosing class needs to be impervious to obfuscation or if the enclosing class defines multiple configurable fields.
UnsupportedOperationException | if the enclosing class has multiple configurable static fields. |
Definition at line 185 of file Configurable.java.
Referenced by javolution.lang.Configurable< javolution.context.LogContext.Level >.Configurable(), javolution.osgi.internal.ConfigurableListenerImpl.configurableInitialized(), and javolution.osgi.internal.ConfigurableListenerImpl.configurableReconfigured().
|
inherited |
Returns the permission to configure this instance.
Definition at line 207 of file Configurable.java.
Permission<Parameter<T> > javolution.context.LocalContext.Parameter< T >.getSupersedePermission | ( | ) |
Returns the permission to locally supersede the current value of this instance.
Definition at line 75 of file LocalContext.java.
References javolution.context.LocalContext.Parameter< T >.supersedePermission.
|
protectedinherited |
This methods is called when the configurable is initialized. Developers may override this method to perform any initialization logic (e.g. input validation).
value | the requested value for this configurable. |
Definition at line 252 of file Configurable.java.
Referenced by javolution.lang.Configurable< javolution.context.LogContext.Level >.Configurable().
|
protectedinherited |
Parses the specified text to return the corresponding value. This method is used to initialize this configurable from system properties. The default implementation uses the TextContext to retrieve the text format (based on DefaultTextFormat class annotation).
Definition at line 264 of file Configurable.java.
Referenced by javolution.lang.Configurable< javolution.context.LogContext.Level >.Configurable().
|
inherited |
Reconfigures this instance with the specified value if authorized by the SecurityContext. This method returns the actual new value which may be different from the requested new value (see reconfigured(Object, Object)).
newValue | the requested new value. |
SecurityException | if the permission to reconfigure this configurable is not granted. |
UnsupportedOperationException | if this configurable does not support dynamic reconfiguration. |
Definition at line 224 of file Configurable.java.
|
protectedinherited |
This methods is called when the configurable is reconfigured. Developers may override this method to perform any reconfiguration logic (e.g. hard limiting values).
oldValue | the old value. |
newValue | the requested new value. |
UnsupportedOperationException | if this configurable does not support dynamic reconfiguration. |
Definition at line 280 of file Configurable.java.
Referenced by javolution.lang.Configurable< javolution.context.LogContext.Level >.reconfigure().
|
privateinherited |
Holds the configurable name.
Definition at line 121 of file Configurable.java.
Referenced by javolution.lang.Configurable< javolution.context.LogContext.Level >.Configurable(), and javolution.lang.Configurable< javolution.context.LogContext.Level >.getName().
|
staticinherited |
Holds the general permission to reconfigure configurable instances (action "reconfigure"
). Whether or not that permission is granted depends on the current SecurityContext. It is possible that the general permission to reconfigure a configurable is granted but revoked for a specific instance. Also, the general permission to reconfigure a configurable may be revoked but granted only for a specific instance.
Definition at line 115 of file Configurable.java.
|
privateinherited |
Holds the reconfigure permission.
Definition at line 126 of file Configurable.java.
Referenced by javolution.lang.Configurable< javolution.context.LogContext.Level >.Configurable(), javolution.lang.Configurable< javolution.context.LogContext.Level >.getReconfigurePermission(), and javolution.lang.Configurable< javolution.context.LogContext.Level >.reconfigure().
|
static |
Holds the general permission to supersede any parameter value (action "supersede").
Definition at line 55 of file LocalContext.java.
|
private |
Holds this instance supersede permission.
Definition at line 61 of file LocalContext.java.
Referenced by javolution.context.LocalContext.Parameter< T >.getSupersedePermission().
|
privateinherited |
Holds the configurable value.
Definition at line 131 of file Configurable.java.
Referenced by javolution.lang.Configurable< javolution.context.LogContext.Level >.get(), javolution.lang.Configurable< javolution.context.LogContext.Level >.initialized(), and javolution.lang.Configurable< javolution.context.LogContext.Level >.reconfigure().