1. /*
  2. * @(#)OADefault.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.spi.oa ;
  8. import com.sun.corba.se.impl.oa.poa.POAFactory ;
  9. import com.sun.corba.se.impl.oa.toa.TOAFactory ;
  10. import com.sun.corba.se.spi.orb.ORB ;
  11. /** OADefault provides methods to create the standard ObjectAdapterFactory
  12. * instances for this version of the ORB. These methods are generally
  13. * used in ORBConfigurator instances to construct an ORB instance.
  14. */
  15. public class OADefault {
  16. public static ObjectAdapterFactory makePOAFactory( ORB orb )
  17. {
  18. ObjectAdapterFactory oaf = new POAFactory() ;
  19. oaf.init( orb ) ;
  20. return oaf ;
  21. }
  22. public static ObjectAdapterFactory makeTOAFactory( ORB orb )
  23. {
  24. ObjectAdapterFactory oaf = new TOAFactory() ;
  25. oaf.init( orb ) ;
  26. return oaf ;
  27. }
  28. }