KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > oa > OADefault


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
8 package com.sun.corba.se.spi.oa ;
9
10 import com.sun.corba.se.impl.oa.poa.POAFactory ;
11 import com.sun.corba.se.impl.oa.toa.TOAFactory ;
12 import com.sun.corba.se.spi.orb.ORB ;
13
14 /** OADefault provides methods to create the standard ObjectAdapterFactory
15  * instances for this version of the ORB. These methods are generally
16  * used in ORBConfigurator instances to construct an ORB instance.
17  */

18 public class OADefault {
19     public static ObjectAdapterFactory makePOAFactory( ORB orb )
20     {
21     ObjectAdapterFactory oaf = new POAFactory() ;
22     oaf.init( orb ) ;
23     return oaf ;
24     }
25
26     public static ObjectAdapterFactory makeTOAFactory( ORB orb )
27     {
28     ObjectAdapterFactory oaf = new TOAFactory() ;
29     oaf.init( orb ) ;
30     return oaf ;
31     }
32 }
33
Popular Tags