FileDocCategorySizeDatePackage
OADefault.javaAPI DocJava SE 5 API906Fri Aug 26 14:54:38 BST 2005com.sun.corba.se.spi.oa

OADefault.java

/*
 * @(#)OADefault.java	1.8 03/12/19
 * 
 * Copyright 2004 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 ;
    }
}