org.objectweb.joram.client.jms.admin

Class AdministeredObject

Implemented Interfaces:
javax.naming.Referenceable, java.io.Serializable, SoapObjectItf
Known Direct Subclasses:
ConnectionFactory, Destination, User, XAConnectionFactory

public abstract class AdministeredObject
extends java.lang.Object
implements java.io.Serializable, javax.naming.Referenceable, SoapObjectItf

The AdministeredObject class is the parent class of all JORAM administered objects.

See Also:
Serialized Form

Field Summary

protected String
id
Identifier of the object.
protected static Hashtable
instancesTable
Class table holding the AdministeredObject instances.

Constructor Summary

AdministeredObject()
Constructs an empty administered object.
AdministeredObject(String id)
Constructs an administered object.

Method Summary

Hashtable
code()
Codes an AdministeredObject as a Hashtable for travelling through the SOAP protocol.
static Object
getInstance(String name)
Retrieves an instance from the table.
Reference
getReference()
Sets the naming reference of an administered object.

Field Details

id

protected String id
Identifier of the object.


instancesTable

protected static Hashtable instancesTable
Class table holding the AdministeredObject instances.

Key: object's identifier
Object: object's instance

Constructor Details

AdministeredObject

protected AdministeredObject()
Constructs an empty administered object.


AdministeredObject

protected AdministeredObject(String id)
Constructs an administered object.

Parameters:
id - Identifier of the object.

Method Details

code

public Hashtable code()
Codes an AdministeredObject as a Hashtable for travelling through the SOAP protocol.
Specified by:
code in interface SoapObjectItf


getInstance

public static Object getInstance(String name)
Retrieves an instance from the table.


getReference

public Reference getReference()
            throws NamingException
Sets the naming reference of an administered object.


Copyright B) 2004 Scalagent - All rights reserved