Package com.sun.corba.se.spi.oa

Source Code of com.sun.corba.se.spi.oa.OADefault

/*
* @(#)OADefault.java  1.9 05/11/17
*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/

package com.sun.corba.se.spi.oa ;

import com.sun.corba.se.impl.oa.poa.POAFactory ;
import com.sun.corba.se.impl.oa.toa.TOAFactory ;
import com.sun.corba.se.spi.orb.ORB ;

/** OADefault provides methods to create the standard ObjectAdapterFactory
* instances for this version of the ORB.  These methods are generally
* used in ORBConfigurator instances to construct an ORB instance.
*/
public class OADefault {
    public static ObjectAdapterFactory makePOAFactory( ORB orb )
    {
  ObjectAdapterFactory oaf = new POAFactory() ;
  oaf.init( orb ) ;
  return oaf ;
    }

    public static ObjectAdapterFactory makeTOAFactory( ORB orb )
    {
  ObjectAdapterFactory oaf = new TOAFactory() ;
  oaf.init( orb ) ;
  return oaf ;
    }
}
TOP

Related Classes of com.sun.corba.se.spi.oa.OADefault

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.