org.elkoserver.server.context
Class AdminObject
java.lang.Object
org.elkoserver.foundation.actor.BasicProtocolHandler
org.elkoserver.server.context.AdminObject
- All Implemented Interfaces:
- DispatchTarget, Referenceable, InternalObject
- Direct Known Subclasses:
- BankClient
public abstract class AdminObject
- extends BasicProtocolHandler
- implements InternalObject
Abstract base class for internal objects that want to be addressable in
messages delivered over internal (i.e., behind the firewall) communications
connections to the server.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdminObject
public AdminObject()
activate
public void activate(String ref,
Contextor contextor)
- Make this object live inside the context server.
- Specified by:
activate in interface InternalObject
- Parameters:
ref - Reference string identifying this object in the static
object table.contextor - The contextor for this server.
contextor
public Contextor contextor()
- Obtain the contextor for this server.
- Specified by:
contextor in interface InternalObject
- Returns:
- the Contextor object for this server.
ref
public String ref()
- Obtain this object's reference string.
- Specified by:
ref in interface Referenceable
- Returns:
- a string that can be used to refer to this object in JSON
messages, either as the message target or as a parameter value.