KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > orbutil > closure > ClosureFactory


1 /*
2  * @(#)ClosureFactory.java 1.2 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.orbutil.closure ;
9
10 import com.sun.corba.se.impl.orbutil.closure.Constant ;
11 import com.sun.corba.se.impl.orbutil.closure.Future ;
12
13 public abstract class ClosureFactory {
14     private ClosureFactory() {}
15
16     public static Closure makeConstant( Object JavaDoc value )
17     {
18     return new Constant( value ) ;
19     }
20
21     public static Closure makeFuture( Closure value )
22     {
23     return new Future( value ) ;
24     }
25 }
26
Popular Tags