javax.rmi.CORBA
public interface Tie extends InvokeHandler
A Tie serves as a CORBA Servant or implementation base. It is connected to the ORB on a server side, providing the implementation of the required functionality. ORB access this implementation using {@link InvokeHandler} ._invoke(..). All such calls are finally delegated to the object, returned by {@link #getTarget()}.
Ties are generated from implementations (name pattern *Impl) and have the
name pattern _*Impl_Tie, for instance:
rmic -keep -iiop -poa -always gnu.testlet.java.rmi.Remote.CalculatorImpl
Ties should normally be derived from the
{@link org.omg.PortableServer.Servant}. Such ties are generated by
rmic
compiler using -poa
key. Ties can be also
derived from {@link org.omg.CORBA_2_3.portable.ObjectImpl}.
Method Summary | |
---|---|
void | deactivate()
Deactivate this Tie. |
Remote | getTarget()
Get the invocation target, where all method calls should be delegated.
|
ORB | orb()
Get the ORB to that this Tie is connected.
|
void | orb(ORB orb)
Connect this Tie to the given ORB. |
void | setTarget(Remote target)
Set the invocation target, where all method calls should be delegated.
|
Object | thisObject()
Get the object that delegates calls to this tie.
|
Throws: NoSuchObjectException if there are no objects served by this Tie, or if the these objects are already deactivated.
See Also: POAOperations
Returns: the object, implementing methods, defined in the interface being served by this Tie.
See Also: Servant
Parameters: target the object, implementing methods, defined in the interface being served by this Tie. The code, produced by a typical rmic compiler usually requires the target to be an instance of the implementation from that the Tie was generated.
Throws: ClassCastException if the passed parameter is not an instance of the implementation from that the Tie was generated.
See Also: _this_object