|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.net.orb.UnicastObject
UnicastObject
is a convenience class which may be sublassed from
in order to provide remoting of behaviour.
Constructor Summary | |
protected |
UnicastObject(ORB orb)
Construct a new UnicastObject . |
protected |
UnicastObject(ORB orb,
java.lang.String uri)
Construct a new UnicastObject . |
protected |
UnicastObject(ORB orb,
java.lang.String uri,
boolean exportTo)
Construct a new UnicastObject . |
Method Summary | |
protected ORB |
getORB()
Returns the ORB. |
Proxy |
getProxy()
Returns a proxy to invoke methods on this. |
protected java.lang.String |
getURI()
Returns the URI this was exported on. |
void |
unexportObject()
Unexport this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected UnicastObject(ORB orb) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
UnicastObject
.orb
- the ORB to export this withjava.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundprotected UnicastObject(ORB orb, java.lang.String uri) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
UnicastObject
.orb
- the ORB to export this withuri
- the URI to export this on. If null
, use the ORB
default export URIjava.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundprotected UnicastObject(ORB orb, java.lang.String uri, boolean exportTo) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
UnicastObject
.orb
- the ORB to export this withuri
- the URI to export this onexportTo
- if false
, ORB.exportObject(Object,
String)
is used to export this. If true
and
uri
is non-null,
ORB.exportObjectTo(Object, String)
is used,
otherwise ORB.exportObjectTo(Object)
is used.java.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundMethod Detail |
public Proxy getProxy()
public void unexportObject() throws java.rmi.NoSuchObjectException
java.rmi.NoSuchObjectException
- if the object isn't exportedprotected ORB getORB()
protected java.lang.String getURI()
null
if the ORB
default URI was used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |