util.rmi
Class RmiPropertyContainer

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by util.rmi.RmiPropertyContainer
All Implemented Interfaces:
Cloneable, Remote, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, RmiPropertyBearing
Direct Known Subclasses:
AbstractRmiCaster, AbstractRmiListener

public class RmiPropertyContainer
extends PropertyBundles
implements RmiPropertyBearing

A base implementation of the RmiPropertyBearing interface. It extends the functionality of PropertyBundles in a way that the properties can be querried and set from remote JAVA VM's. This implementation simply redirects all remote methods to its local counterparts.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static int DEFEXPORTPORT
          The port at which unicast should export.
static String KEY_EXPORTPORT
          For unicast exports, the port at which we should export.
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
protected RmiPropertyContainer(Map<String,String> props)
          Constructs a new property container.
 
Method Summary
 boolean containsRemoteProperty(String key)
          Tests if this property container contains a certain property.
 Map<String,Object> getRemoteProperties()
          Returns the entire properties of this object as a map.
 String getRemoteProperty(String key)
          Returns a special property of this property container.
 String setRemoteProperty(String key, String val)
          Sets a special property of this property container.
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
Methods inherited from class util.PropertyResources
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, init, keyCreate, keyCreate, reload, setApplet
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
Methods inherited from interface util.PropertySupplying
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 
Methods inherited from interface util.Initializable
init
 

Field Detail

KEY_EXPORTPORT

public static final String KEY_EXPORTPORT
For unicast exports, the port at which we should export.

See Also:
Constant Field Values

DEFEXPORTPORT

private static final int DEFEXPORTPORT
The port at which unicast should export. Zero means anonymous port.

See Also:
Constant Field Values
Constructor Detail

RmiPropertyContainer

protected RmiPropertyContainer(Map<String,String> props)
Constructs a new property container. The method is protected to avoid improper use. If the argument is null an empty Map object is created as this object's properties.

Method Detail

getRemoteProperties

public Map<String,Object> getRemoteProperties()
                                       throws RemoteException
Returns the entire properties of this object as a map. Calls PropertyContainer.getProperties().

Specified by:
getRemoteProperties in interface RmiPropertyBearing
Throws:
RemoteException

getRemoteProperty

public String getRemoteProperty(String key)
                         throws RemoteException
Returns a special property of this property container. Calls PropertyContainer.getProperty(java.lang.String).

Specified by:
getRemoteProperty in interface RmiPropertyBearing
Parameters:
key - The key for the Map object.
Returns:
The value of the PropertyContainer.getProperty(java.lang.String) call.
Throws:
RemoteException

setRemoteProperty

public String setRemoteProperty(String key,
                                String val)
                         throws RemoteException
Sets a special property of this property container. Calls PropertyContainer.setProperty(java.lang.String, java.lang.String).

Specified by:
setRemoteProperty in interface RmiPropertyBearing
Parameters:
key - The key for this Property.
value - The value of this Property.
Throws:
RemoteException

containsRemoteProperty

public boolean containsRemoteProperty(String key)
                               throws RemoteException
Tests if this property container contains a certain property. Calls PropertyContainer.has(java.lang.String).

Specified by:
containsRemoteProperty in interface RmiPropertyBearing
Throws:
RemoteException