1. /*
  2. * @(#)ValueFactory.java 1.10 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. * Licensed Materials - Property of IBM
  9. * RMI-IIOP v1.0
  10. * Copyright IBM Corp. 1998 1999 All Rights Reserved
  11. *
  12. * US Government Users Restricted Rights - Use, duplication or
  13. * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  14. */
  15. package org.omg.CORBA.portable;
  16. import java.io.Serializable;
  17. /**
  18. * The ValueFactory interface is the native mapping for the IDL
  19. * type CORBA::ValueFactory. The read_value() method is called by
  20. * the ORB runtime while in the process of unmarshaling a value type.
  21. * A user shall implement this method as part of implementing a type
  22. * specific value factory. In the implementation, the user shall call
  23. * is.read_value(java.io.Serializable) with a uninitialized valuetype
  24. * to use for unmarshaling. The value returned by the stream is
  25. * the same value passed in, with all the data unmarshaled.
  26. * @see org.omg.CORBA_2_3.ORB
  27. */
  28. public interface ValueFactory {
  29. /**
  30. * Is called by
  31. * the ORB runtime while in the process of unmarshaling a value type.
  32. * A user shall implement this method as part of implementing a type
  33. * specific value factory.
  34. * @param is an InputStream object--from which the value will be read.
  35. * @return a Serializable object--the value read off of "is" Input stream.
  36. */
  37. Serializable read_value(org.omg.CORBA_2_3.portable.InputStream is);
  38. }