|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
stella.parameter.AbstractParameter
stella.parameter.AbstractRemoteParameter
public abstract class AbstractRemoteParameter
A skeleton implementation of a RemoteParameter. This class takes
care of proper binding of the parameter to the registry and diverts the
remoteGet() method to the Parameter.get() method.
Provides also a static method for binding non-subclasses of
abstract remote parameter to the registry.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyContainer |
|---|
PropertyContainer.URLResource |
| Field Summary | |
|---|---|
protected static boolean |
DEFBIND
The default auto-binding as a RemoteParameter. |
static String |
KEY_BIND
The key in the Map for auto-binding of the trigger. |
private List<RmiListener> |
stubs
A list of registered rmi listners. |
| Fields inherited from class stella.parameter.AbstractParameter |
|---|
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWN |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES |
| Fields inherited from interface util.PropertyBearing |
|---|
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
protected |
AbstractRemoteParameter(Map prop)
Constructs a new remote parameter. |
| Method Summary | |
|---|---|
void |
addRmiListener(RmiListener ear)
Adds a listener for notification on exit. |
boolean |
bindToRegistry()
Binds to registry. |
void |
exit()
Unbinds from registry, if bound. |
void |
init()
Binds this trigger to the registry. |
boolean |
isValid()
Returns true. |
Object |
remoteGet()
The remote edge of this trigger. |
void |
removeRmiListener(RmiListener ear)
Removes a listener. |
protected double |
rescanned(String key,
String old,
String newval)
If the bind property changed, we deregister from our current binding and re-instantiate a new binding thread. |
boolean |
unbindFromRegistry()
Unbinds from registry. |
| Methods inherited from class stella.parameter.AbstractParameter |
|---|
createParameter, delivers, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, register, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface stella.Parameter |
|---|
get, set |
| Methods inherited from interface util.PropertyBearing |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getLocalized, getProperties, getProperty, getResource, getResourceAsStream, getResources, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Field Detail |
|---|
public static final String KEY_BIND
protected static final boolean DEFBIND
RemoteParameter.
private List<RmiListener> stubs
| Constructor Detail |
|---|
protected AbstractRemoteParameter(Map prop)
#bind method, which is called only in
the init() section.
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class AbstractParameterpublic void exit()
exit in interface ExitCleaningexit in class AbstractParameter
protected double rescanned(String key,
String old,
String newval)
rescanned in class AbstractParameter
public boolean bindToRegistry()
throws RemoteException
bindToRegistry in interface RmiCasterRemoteException
public boolean unbindFromRegistry()
throws RemoteException
unbindFromRegistry in interface RmiCasterRemoteException
public Object remoteGet()
throws RemoteException
remoteGet in interface RemoteParameterRemoteException
public void addRmiListener(RmiListener ear)
throws RemoteException
addRmiListener in interface RemoteParameterRemoteException
public void removeRmiListener(RmiListener ear)
throws RemoteException
removeRmiListener in interface RemoteParameterRemoteException
public boolean isValid()
throws RemoteException
isValid in interface RmiCasterRemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||