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. package com.sun.corba.se.spi.orbutil.closure ;
  8. import com.sun.corba.se.impl.orbutil.closure.Constant ;
  9. import com.sun.corba.se.impl.orbutil.closure.Future ;
  10. public abstract class ClosureFactory {
  11. private ClosureFactory() {}
  12. public static Closure makeConstant( Object value )
  13. {
  14. return new Constant( value ) ;
  15. }
  16. public static Closure makeFuture( Closure value )
  17. {
  18. return new Future( value ) ;
  19. }
  20. }