KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > oa > toa > TOA


1 /*
2  * @(#)TOA.java 1.8 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.impl.oa.toa ;
9
10 import com.sun.corba.se.spi.oa.ObjectAdapter ;
11
12 /** The Transient Object Adapter is used for standard RMI-IIOP and Java-IDL
13  * (legacy JDK 1.2) object implementations. Its protocol for managing objects is very
14  * simple: just connect and disconnect. There is only a single TOA instance per ORB,
15  * and its lifetime is the same as the ORB. The TOA instance is always ready to receive
16  * messages except when the ORB is shutting down.
17  */

18 public interface TOA extends ObjectAdapter {
19     /** Connect the given servant to the ORB by allocating a transient object key
20      * and creating an IOR and object reference using the current factory.
21      */

22     void connect( org.omg.CORBA.Object JavaDoc servant ) ;
23
24     /** Disconnect the object from this ORB.
25     */

26     void disconnect( org.omg.CORBA.Object JavaDoc obj ) ;
27 }
28
29
Popular Tags