CookieHolder.java revision 0
4169N/A/*
1178N/A * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
1178N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1178N/A *
1178N/A * This code is free software; you can redistribute it and/or modify it
1178N/A * under the terms of the GNU General Public License version 2 only, as
1178N/A * published by the Free Software Foundation. Sun designates this
1178N/A * particular file as subject to the "Classpath" exception as provided
1178N/A * by Sun in the LICENSE file that accompanied this code.
1178N/A *
1178N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1178N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1178N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1178N/A * version 2 for more details (a copy is included in the LICENSE file that
1178N/A * accompanied this code).
1178N/A *
1178N/A * You should have received a copy of the GNU General Public License version
2362N/A * 2 along with this work; if not, write to the Free Software Foundation,
2362N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2362N/A *
1178N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
4169N/A * CA 95054 USA or visit www.sun.com if you need additional information or
1178N/A * have any questions.
1178N/A */
4033N/A
4033N/Apackage org.omg.PortableServer.ServantLocatorPackage;
1178N/A
1178N/A/**
1178N/A * The native type PortableServer::ServantLocator::Cookie is mapped
1178N/A * to java.lang.Object. A CookieHolder class is provided for passing
4033N/A * the Cookie type as an out parameter. The CookieHolder class
1178N/A * follows exactly the same pattern as the other holder classes
1178N/A * for basic types.
4033N/A */
1178N/A
1178N/Afinal public class CookieHolder implements org.omg.CORBA.portable.Streamable
4033N/A{
1178N/A public java.lang.Object value;
1178N/A
4033N/A public CookieHolder() { }
1178N/A
1178N/A public CookieHolder(java.lang.Object initial) {
4033N/A value = initial;
4033N/A }
4033N/A
4033N/A public void _read( org.omg.CORBA.portable.InputStream is) {
4033N/A throw new org.omg.CORBA.NO_IMPLEMENT();
4033N/A }
4033N/A
4033N/A public void _write( org.omg.CORBA.portable.OutputStream os) {
4033N/A throw new org.omg.CORBA.NO_IMPLEMENT();
1178N/A }
1178N/A
4033N/A public org.omg.CORBA.TypeCode _type() {
1178N/A throw new org.omg.CORBA.NO_IMPLEMENT();
1178N/A }
4033N/A}
1178N/A