1. /*
  2. * @(#)CookieHolder.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. package org.omg.PortableServer.ServantLocatorPackage;
  8. /**
  9. * The native type PortableServer::ServantLocator::Cookie is mapped
  10. * to java.lang.Object. A CookieHolder class is provided for passing
  11. * the Cookie type as an out parameter. The CookieHolder class
  12. * follows exactly the same pattern as the other holder classes
  13. * for basic types.
  14. */
  15. final public class CookieHolder implements org.omg.CORBA.portable.Streamable
  16. {
  17. public java.lang.Object value;
  18. public CookieHolder() { }
  19. public CookieHolder(java.lang.Object initial) {
  20. value = initial;
  21. }
  22. public void _read( org.omg.CORBA.portable.InputStream is) {
  23. throw new org.omg.CORBA.NO_IMPLEMENT();
  24. }
  25. public void _write( org.omg.CORBA.portable.OutputStream os) {
  26. throw new org.omg.CORBA.NO_IMPLEMENT();
  27. }
  28. public org.omg.CORBA.TypeCode _type() {
  29. throw new org.omg.CORBA.NO_IMPLEMENT();
  30. }
  31. }