java.lang.Object
com.mjh.switchrmi.GenericReferenceable
com.mjh.switchrmi.ObjectReferenceable
- All Implemented Interfaces:
- javax.naming.Referenceable
- public class ObjectReferenceable
- extends GenericReferenceable
- implements javax.naming.Referenceable
| Methods inherited from class com.mjh.switchrmi.GenericReferenceable |
addLibrary, getClassName, getCodebase, getDescription, getFactoryClassName, getLibraries, getReference, setClassName, setCodebase, setDescription, setFactoryClassName |
types
private static java.util.Map types
INTERFACE_ADDR
public static final java.lang.String INTERFACE_ADDR
- See Also:
- Constant Field Values
name
java.lang.String name
scope
java.lang.String scope
interfaces
java.util.List interfaces
type
java.lang.String type
typeInfo
java.util.Map typeInfo
ObjectReferenceable
public ObjectReferenceable()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
- Overrides:
toString in class GenericReferenceable
appendMembers
protected void appendMembers(java.lang.StringBuffer sb)
- Overrides:
appendMembers in class GenericReferenceable
setName
public void setName(java.lang.String value)
getName
public java.lang.String getName()
setScope
public void setScope(java.lang.String value)
getScope
public java.lang.String getScope()
addInterface
public void addInterface(java.lang.String interfaceName)
setType
public void setType(java.lang.String value)
setTypeInfo
public void setTypeInfo(java.util.Map info)
getInterfaces
public java.lang.String[] getInterfaces()
getTypeValue
public java.lang.Object getTypeValue(java.lang.String key)