biz.hammurapi.config
Class RmiComponent
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
biz.hammurapi.config.RmiComponent
- All Implemented Interfaces:
- Component, DomConfigurable, java.io.Serializable, java.rmi.Remote
- Direct Known Subclasses:
- WorkerRemotizer
public class RmiComponent
- extends java.rmi.server.UnicastRemoteObject
- implements Component, DomConfigurable
Base class for components exposed through RMI
- Author:
- Pavel Vlasov
- See Also:
- Serialized Form
Field Summary |
protected java.lang.Object |
owner
|
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
void |
configure(org.w3c.dom.Node configNode,
Context context)
Reads configuration from Node |
void |
setOwner(java.lang.Object owner)
Plugs the component into container and naming bus. |
void |
start()
Invoked by container before the first use. |
void |
stop()
Invoked by container when component is not needed
anymore. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
owner
protected java.lang.Object owner
RmiComponent
public RmiComponent()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
start
public void start()
throws ConfigurationException
- Description copied from interface:
Component
- Invoked by container before the first use.
Component shall perform initialization
in this method.
- Specified by:
start
in interface Component
- Throws:
ConfigurationException
stop
public void stop()
throws ConfigurationException
- Description copied from interface:
Component
- Invoked by container when component is not needed
anymore. Component shall perform cleanup in this method.
- Specified by:
stop
in interface Component
- Throws:
ConfigurationException
setOwner
public void setOwner(java.lang.Object owner)
- Description copied from interface:
Component
- Plugs the component into container and naming bus.
- Specified by:
setOwner
in interface Component
configure
public void configure(org.w3c.dom.Node configNode,
Context context)
- Description copied from interface:
DomConfigurable
- Reads configuration from
Node
- Specified by:
configure
in interface DomConfigurable
Copyright © 2003 Hammurapi Group. All Rights Reserved.