⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 repositoryidfactory.java

📁 java jdk 1.4的源码
💻 JAVA
字号:
/* * @(#)RepositoryIdFactory.java	1.4 03/01/23 * * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.corba.se.internal.orbutil;import com.sun.corba.se.internal.core.ORBVersion;import com.sun.corba.se.internal.corba.ORB;public abstract class RepositoryIdFactory{    private static final RepIdDelegator_1_3 legacyDelegator        = new RepIdDelegator_1_3();    private static final RepIdDelegator_1_3_1 ladybirdDelegator        = new RepIdDelegator_1_3_1();    private static final RepIdDelegator currentDelegator        = new RepIdDelegator();    /**     * Returns the latest version RepositoryIdStrings instance     */    public static RepositoryIdStrings getRepIdStringsFactory()    {        return currentDelegator;    }    /**     * Checks the version of the ORB and returns the appropriate     * RepositoryIdStrings instance.     */    public static RepositoryIdStrings getRepIdStringsFactory(ORB orb)    {        if (orb != null) {            switch (orb.getORBVersion().getORBType()) {                case ORBVersion.NEWER:                case ORBVersion.FOREIGN:                case ORBVersion.JDK1_3_1_01:                    return currentDelegator;                case ORBVersion.OLD:                    return legacyDelegator;                case ORBVersion.NEW:                    return ladybirdDelegator;                default:                    return currentDelegator;            }        } else            return currentDelegator;    }    /**     * Returns the latest version RepositoryIdUtility instance     */    public static RepositoryIdUtility getRepIdUtility()    {        return currentDelegator;    }    /**     * Checks the version of the ORB and returns the appropriate     * RepositoryIdUtility instance.     */    public static RepositoryIdUtility getRepIdUtility(ORB orb)    {        if (orb != null) {            switch (orb.getORBVersion().getORBType()) {                case ORBVersion.NEWER:                case ORBVersion.FOREIGN:                case ORBVersion.JDK1_3_1_01:                    return currentDelegator;                case ORBVersion.OLD:                    return legacyDelegator;                case ORBVersion.NEW:                    return ladybirdDelegator;                default:                    return currentDelegator;            }        } else            return currentDelegator;    }}

⌨️ 快捷键说明

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