IdentifiableFactory.java revision 608:7e06bf1dcb09
178189Sbrian/* 278189Sbrian * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved. 378189Sbrian * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 478189Sbrian * 578189Sbrian * This code is free software; you can redistribute it and/or modify it 66756Samurai * under the terms of the GNU General Public License version 2 only, as 778189Sbrian * published by the Free Software Foundation. Oracle designates this 878189Sbrian * particular file as subject to the "Classpath" exception as provided 978189Sbrian * by Oracle in the LICENSE file that accompanied this code. 1078189Sbrian * 1178189Sbrian * This code is distributed in the hope that it will be useful, but WITHOUT 1278189Sbrian * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1378189Sbrian * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1478189Sbrian * version 2 for more details (a copy is included in the LICENSE file that 156756Samurai * accompanied this code). 1678189Sbrian * 1778189Sbrian * You should have received a copy of the GNU General Public License version 1878189Sbrian * 2 along with this work; if not, write to the Free Software Foundation, 1978189Sbrian * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2078189Sbrian * 2178189Sbrian * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2278189Sbrian * or visit www.oracle.com if you need additional information or have any 2378189Sbrian * questions. 2478189Sbrian */ 2578189Sbrian 2678189Sbrianpackage com.sun.corba.se.spi.ior ; 276756Samurai 2850479Speterimport org.omg.CORBA_2_3.portable.InputStream ; 296756Samurai 306756Samuraiimport com.sun.corba.se.spi.ior.Identifiable ; 3136285Sbrian 3236285Sbrian/** Factory interface for creating Identifiables. 3343693Sbrian */ 3443693Sbrianpublic interface IdentifiableFactory { 356756Samurai /** Return the id of this factory, which is the id of the result 366756Samurai * of any create call. 3743693Sbrian */ 3843693Sbrian public int getId() ; 3943693Sbrian 4043693Sbrian /** Construct the appropriate Identifiable object with the 4143693Sbrian * given id from the InputStream is. 4243693Sbrian */ 4343693Sbrian public Identifiable create( InputStream in ) ; 4443693Sbrian} 4543693Sbrian