KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > presentation > rmi > PresentationDefaults


1 /*
2  * @(#)PresentationDefaults.java 1.6 04/07/27
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.presentation.rmi;
9
10 import com.sun.corba.se.spi.orb.ORB;
11
12 import com.sun.corba.se.spi.presentation.rmi.PresentationManager;
13
14 import com.sun.corba.se.impl.presentation.rmi.StubFactoryFactoryProxyImpl;
15 import com.sun.corba.se.impl.presentation.rmi.StubFactoryFactoryStaticImpl;
16 import com.sun.corba.se.impl.presentation.rmi.StubFactoryStaticImpl;
17
18 public abstract class PresentationDefaults
19 {
20     private static StubFactoryFactoryStaticImpl staticImpl = null ;
21
22     private PresentationDefaults() {}
23
24     public synchronized static PresentationManager.StubFactoryFactory
25     getStaticStubFactoryFactory()
26     {
27     if (staticImpl == null)
28         staticImpl = new StubFactoryFactoryStaticImpl( );
29
30     return staticImpl ;
31     }
32
33     public static PresentationManager.StubFactoryFactory
34     getProxyStubFactoryFactory()
35     {
36     return new StubFactoryFactoryProxyImpl();
37     }
38
39     public static PresentationManager.StubFactory makeStaticStubFactory(
40     Class JavaDoc stubClass )
41     {
42     return new StubFactoryStaticImpl( stubClass ) ;
43     }
44 }
45
46
Popular Tags