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. package com.sun.corba.se.impl.oa.toa ;
  8. import com.sun.corba.se.spi.oa.ObjectAdapter ;
  9. /** The Transient Object Adapter is used for standard RMI-IIOP and Java-IDL
  10. * (legacy JDK 1.2) object implementations. Its protocol for managing objects is very
  11. * simple: just connect and disconnect. There is only a single TOA instance per ORB,
  12. * and its lifetime is the same as the ORB. The TOA instance is always ready to receive
  13. * messages except when the ORB is shutting down.
  14. */
  15. public interface TOA extends ObjectAdapter {
  16. /** Connect the given servant to the ORB by allocating a transient object key
  17. * and creating an IOR and object reference using the current factory.
  18. */
  19. void connect( org.omg.CORBA.Object servant ) ;
  20. /** Disconnect the object from this ORB.
  21. */
  22. void disconnect( org.omg.CORBA.Object obj ) ;
  23. }