identifiablefactoryfinder.java

来自「JAVA的一些源码 JAVA2 STANDARD EDITION DEVELO」· Java 代码 · 共 32 行

JAVA
32
字号
/* * @(#)IdentifiableFactoryFinder.java	1.9 03/12/19 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.corba.se.spi.ior;import org.omg.CORBA_2_3.portable.InputStream ;/** Interface used to manage a group of related IdentifiableFactory instances. * Factories can be registered, and invoked through a create method, which  * must be implemented to handle the case of no registered factory  * appropriately. * @author Ken Cavanaugh */public interface IdentifiableFactoryFinder {    /** If there is a registered factory for id, use it to      * read an Identifiable from is.  Otherwise create an     * appropriate generic container, or throw an error.     * The type of generic container, or error behavior is      * a property of the implementation.     */    Identifiable create(int id, InputStream is);    /** Register a factory for the given id.     */    void registerFactory( IdentifiableFactory factory ) ; }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?