FileDocCategorySizeDatePackage
RepositoryIdFactory.javaAPI DocJava SE 5 API2511Fri Aug 26 14:54:28 BST 2005com.sun.corba.se.impl.orbutil

RepositoryIdFactory

public abstract class RepositoryIdFactory extends Object

Fields Summary
private static final RepIdDelegator_1_3
legacyDelegator
private static final RepIdDelegator_1_3_1
ladybirdDelegator
private static final RepIdDelegator
currentDelegator
Constructors Summary
Methods Summary
public static RepositoryIdStringsgetRepIdStringsFactory()
Returns the latest version RepositoryIdStrings instance


               
       
    
        return currentDelegator;
    
public static RepositoryIdStringsgetRepIdStringsFactory(com.sun.corba.se.spi.orb.ORB orb)
Checks the version of the ORB and returns the appropriate RepositoryIdStrings instance.

        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;
    
public static RepositoryIdUtilitygetRepIdUtility()
Returns the latest version RepositoryIdUtility instance

        return currentDelegator;
    
public static RepositoryIdUtilitygetRepIdUtility(com.sun.corba.se.spi.orb.ORB orb)
Checks the version of the ORB and returns the appropriate RepositoryIdUtility instance.

        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;