Java Code Examples for com.sun.corba.se.spi.presentation.rmi.PresentationManager#getStubFactoryFactory()

The following examples show how to use com.sun.corba.se.spi.presentation.rmi.PresentationManager#getStubFactoryFactory() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ORB.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/** Get the appropriate StubFactoryFactory.  This
 * will be dynamic or static depending on whether
 * com.sun.CORBA.ORBUseDynamicStub is true or false.
 */
public static PresentationManager.StubFactoryFactory
    getStubFactoryFactory()
{
    PresentationManager gPM = getPresentationManager();
    boolean useDynamicStubs = gPM.useDynamicStubs() ;
    return gPM.getStubFactoryFactory( useDynamicStubs ) ;
}
 
Example 2
Source File: StubFactoryFactoryDynamicBase.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public PresentationManager.StubFactory createStubFactory(
    String className, boolean isIDLStub, String remoteCodeBase,
    Class expectedClass, ClassLoader classLoader)
{
    Class cls = null ;

    try {
        cls = Util.loadClass( className, remoteCodeBase, classLoader ) ;
    } catch (ClassNotFoundException exc) {
        throw wrapper.classNotFound3(
            CompletionStatus.COMPLETED_MAYBE, exc, className ) ;
    }

    PresentationManager pm = ORB.getPresentationManager() ;

    if (IDLEntity.class.isAssignableFrom( cls ) &&
        !Remote.class.isAssignableFrom( cls )) {
        // IDL stubs must always use static factories.
        PresentationManager.StubFactoryFactory sff =
            pm.getStubFactoryFactory( false ) ;
        PresentationManager.StubFactory sf =
            sff.createStubFactory( className, true, remoteCodeBase,
                expectedClass, classLoader ) ;
        return sf ;
    } else {
        PresentationManager.ClassData classData = pm.getClassData( cls ) ;
        return makeDynamicStubFactory( pm, classData, classLoader ) ;
    }
}
 
Example 3
Source File: ORB.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/** Get the appropriate StubFactoryFactory.  This
 * will be dynamic or static depending on whether
 * com.sun.CORBA.ORBUseDynamicStub is true or false.
 */
public static PresentationManager.StubFactoryFactory
    getStubFactoryFactory()
{
    PresentationManager gPM = getPresentationManager();
    boolean useDynamicStubs = gPM.useDynamicStubs() ;
    return gPM.getStubFactoryFactory( useDynamicStubs ) ;
}
 
Example 4
Source File: StubFactoryFactoryDynamicBase.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public PresentationManager.StubFactory createStubFactory(
    String className, boolean isIDLStub, String remoteCodeBase,
    Class expectedClass, ClassLoader classLoader)
{
    Class cls = null ;

    try {
        cls = Util.loadClass( className, remoteCodeBase, classLoader ) ;
    } catch (ClassNotFoundException exc) {
        throw wrapper.classNotFound3(
            CompletionStatus.COMPLETED_MAYBE, exc, className ) ;
    }

    PresentationManager pm = ORB.getPresentationManager() ;

    if (IDLEntity.class.isAssignableFrom( cls ) &&
        !Remote.class.isAssignableFrom( cls )) {
        // IDL stubs must always use static factories.
        PresentationManager.StubFactoryFactory sff =
            pm.getStubFactoryFactory( false ) ;
        PresentationManager.StubFactory sf =
            sff.createStubFactory( className, true, remoteCodeBase,
                expectedClass, classLoader ) ;
        return sf ;
    } else {
        PresentationManager.ClassData classData = pm.getClassData( cls ) ;
        return makeDynamicStubFactory( pm, classData, classLoader ) ;
    }
}
 
Example 5
Source File: ORB.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/** Get the appropriate StubFactoryFactory.  This
 * will be dynamic or static depending on whether
 * com.sun.CORBA.ORBUseDynamicStub is true or false.
 */
public static PresentationManager.StubFactoryFactory
    getStubFactoryFactory()
{
    PresentationManager gPM = getPresentationManager();
    boolean useDynamicStubs = gPM.useDynamicStubs() ;
    return gPM.getStubFactoryFactory( useDynamicStubs ) ;
}
 
Example 6
Source File: StubFactoryFactoryDynamicBase.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public PresentationManager.StubFactory createStubFactory(
    String className, boolean isIDLStub, String remoteCodeBase,
    Class expectedClass, ClassLoader classLoader)
{
    Class cls = null ;

    try {
        cls = Util.loadClass( className, remoteCodeBase, classLoader ) ;
    } catch (ClassNotFoundException exc) {
        throw wrapper.classNotFound3(
            CompletionStatus.COMPLETED_MAYBE, exc, className ) ;
    }

    PresentationManager pm = ORB.getPresentationManager() ;

    if (IDLEntity.class.isAssignableFrom( cls ) &&
        !Remote.class.isAssignableFrom( cls )) {
        // IDL stubs must always use static factories.
        PresentationManager.StubFactoryFactory sff =
            pm.getStubFactoryFactory( false ) ;
        PresentationManager.StubFactory sf =
            sff.createStubFactory( className, true, remoteCodeBase,
                expectedClass, classLoader ) ;
        return sf ;
    } else {
        PresentationManager.ClassData classData = pm.getClassData( cls ) ;
        return makeDynamicStubFactory( pm, classData, classLoader ) ;
    }
}
 
Example 7
Source File: ORB.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/** Get the appropriate StubFactoryFactory.  This
 * will be dynamic or static depending on whether
 * com.sun.CORBA.ORBUseDynamicStub is true or false.
 */
public static PresentationManager.StubFactoryFactory
    getStubFactoryFactory()
{
    PresentationManager gPM = getPresentationManager();
    boolean useDynamicStubs = gPM.useDynamicStubs() ;
    return gPM.getStubFactoryFactory( useDynamicStubs ) ;
}
 
Example 8
Source File: StubFactoryFactoryDynamicBase.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public PresentationManager.StubFactory createStubFactory(
    String className, boolean isIDLStub, String remoteCodeBase,
    Class expectedClass, ClassLoader classLoader)
{
    Class cls = null ;

    try {
        cls = Util.loadClass( className, remoteCodeBase, classLoader ) ;
    } catch (ClassNotFoundException exc) {
        throw wrapper.classNotFound3(
            CompletionStatus.COMPLETED_MAYBE, exc, className ) ;
    }

    PresentationManager pm = ORB.getPresentationManager() ;

    if (IDLEntity.class.isAssignableFrom( cls ) &&
        !Remote.class.isAssignableFrom( cls )) {
        // IDL stubs must always use static factories.
        PresentationManager.StubFactoryFactory sff =
            pm.getStubFactoryFactory( false ) ;
        PresentationManager.StubFactory sf =
            sff.createStubFactory( className, true, remoteCodeBase,
                expectedClass, classLoader ) ;
        return sf ;
    } else {
        PresentationManager.ClassData classData = pm.getClassData( cls ) ;
        return makeDynamicStubFactory( pm, classData, classLoader ) ;
    }
}
 
Example 9
Source File: ORB.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/** Get the appropriate StubFactoryFactory.  This
 * will be dynamic or static depending on whether
 * com.sun.CORBA.ORBUseDynamicStub is true or false.
 */
public static PresentationManager.StubFactoryFactory
    getStubFactoryFactory()
{
    PresentationManager gPM = getPresentationManager();
    boolean useDynamicStubs = gPM.useDynamicStubs() ;
    return gPM.getStubFactoryFactory( useDynamicStubs ) ;
}
 
Example 10
Source File: StubFactoryFactoryDynamicBase.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public PresentationManager.StubFactory createStubFactory(
    String className, boolean isIDLStub, String remoteCodeBase,
    Class expectedClass, ClassLoader classLoader)
{
    Class cls = null ;

    try {
        cls = Util.loadClass( className, remoteCodeBase, classLoader ) ;
    } catch (ClassNotFoundException exc) {
        throw wrapper.classNotFound3(
            CompletionStatus.COMPLETED_MAYBE, exc, className ) ;
    }

    PresentationManager pm = ORB.getPresentationManager() ;

    if (IDLEntity.class.isAssignableFrom( cls ) &&
        !Remote.class.isAssignableFrom( cls )) {
        // IDL stubs must always use static factories.
        PresentationManager.StubFactoryFactory sff =
            pm.getStubFactoryFactory( false ) ;
        PresentationManager.StubFactory sf =
            sff.createStubFactory( className, true, remoteCodeBase,
                expectedClass, classLoader ) ;
        return sf ;
    } else {
        PresentationManager.ClassData classData = pm.getClassData( cls ) ;
        return makeDynamicStubFactory( pm, classData, classLoader ) ;
    }
}
 
Example 11
Source File: ORB.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/** Get the appropriate StubFactoryFactory.  This
 * will be dynamic or static depending on whether
 * com.sun.CORBA.ORBUseDynamicStub is true or false.
 */
public static PresentationManager.StubFactoryFactory
    getStubFactoryFactory()
{
    PresentationManager gPM = getPresentationManager();
    boolean useDynamicStubs = gPM.useDynamicStubs() ;
    return gPM.getStubFactoryFactory( useDynamicStubs ) ;
}
 
Example 12
Source File: StubFactoryFactoryDynamicBase.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public PresentationManager.StubFactory createStubFactory(
    String className, boolean isIDLStub, String remoteCodeBase,
    Class expectedClass, ClassLoader classLoader)
{
    Class cls = null ;

    try {
        cls = Util.loadClass( className, remoteCodeBase, classLoader ) ;
    } catch (ClassNotFoundException exc) {
        throw wrapper.classNotFound3(
            CompletionStatus.COMPLETED_MAYBE, exc, className ) ;
    }

    PresentationManager pm = ORB.getPresentationManager() ;

    if (IDLEntity.class.isAssignableFrom( cls ) &&
        !Remote.class.isAssignableFrom( cls )) {
        // IDL stubs must always use static factories.
        PresentationManager.StubFactoryFactory sff =
            pm.getStubFactoryFactory( false ) ;
        PresentationManager.StubFactory sf =
            sff.createStubFactory( className, true, remoteCodeBase,
                expectedClass, classLoader ) ;
        return sf ;
    } else {
        PresentationManager.ClassData classData = pm.getClassData( cls ) ;
        return makeDynamicStubFactory( pm, classData, classLoader ) ;
    }
}
 
Example 13
Source File: ORB.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/** Get the appropriate StubFactoryFactory.  This
 * will be dynamic or static depending on whether
 * com.sun.CORBA.ORBUseDynamicStub is true or false.
 */
public static PresentationManager.StubFactoryFactory
    getStubFactoryFactory()
{
    PresentationManager gPM = getPresentationManager();
    boolean useDynamicStubs = gPM.useDynamicStubs() ;
    return gPM.getStubFactoryFactory( useDynamicStubs ) ;
}
 
Example 14
Source File: StubFactoryFactoryDynamicBase.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public PresentationManager.StubFactory createStubFactory(
    String className, boolean isIDLStub, String remoteCodeBase,
    Class expectedClass, ClassLoader classLoader)
{
    Class cls = null ;

    try {
        cls = Util.loadClass( className, remoteCodeBase, classLoader ) ;
    } catch (ClassNotFoundException exc) {
        throw wrapper.classNotFound3(
            CompletionStatus.COMPLETED_MAYBE, exc, className ) ;
    }

    PresentationManager pm = ORB.getPresentationManager() ;

    if (IDLEntity.class.isAssignableFrom( cls ) &&
        !Remote.class.isAssignableFrom( cls )) {
        // IDL stubs must always use static factories.
        PresentationManager.StubFactoryFactory sff =
            pm.getStubFactoryFactory( false ) ;
        PresentationManager.StubFactory sf =
            sff.createStubFactory( className, true, remoteCodeBase,
                expectedClass, classLoader ) ;
        return sf ;
    } else {
        PresentationManager.ClassData classData = pm.getClassData( cls ) ;
        return makeDynamicStubFactory( pm, classData, classLoader ) ;
    }
}
 
Example 15
Source File: ORB.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/** Get the appropriate StubFactoryFactory.  This
 * will be dynamic or static depending on whether
 * com.sun.CORBA.ORBUseDynamicStub is true or false.
 */
public static PresentationManager.StubFactoryFactory
    getStubFactoryFactory()
{
    PresentationManager gPM = getPresentationManager();
    boolean useDynamicStubs = gPM.useDynamicStubs() ;
    return gPM.getStubFactoryFactory( useDynamicStubs ) ;
}
 
Example 16
Source File: StubFactoryFactoryDynamicBase.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public PresentationManager.StubFactory createStubFactory(
    String className, boolean isIDLStub, String remoteCodeBase,
    Class expectedClass, ClassLoader classLoader)
{
    Class cls = null ;

    try {
        cls = Util.loadClass( className, remoteCodeBase, classLoader ) ;
    } catch (ClassNotFoundException exc) {
        throw wrapper.classNotFound3(
            CompletionStatus.COMPLETED_MAYBE, exc, className ) ;
    }

    PresentationManager pm = ORB.getPresentationManager() ;

    if (IDLEntity.class.isAssignableFrom( cls ) &&
        !Remote.class.isAssignableFrom( cls )) {
        // IDL stubs must always use static factories.
        PresentationManager.StubFactoryFactory sff =
            pm.getStubFactoryFactory( false ) ;
        PresentationManager.StubFactory sf =
            sff.createStubFactory( className, true, remoteCodeBase,
                expectedClass, classLoader ) ;
        return sf ;
    } else {
        PresentationManager.ClassData classData = pm.getClassData( cls ) ;
        return makeDynamicStubFactory( pm, classData, classLoader ) ;
    }
}
 
Example 17
Source File: ORB.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/** Get the appropriate StubFactoryFactory.  This
 * will be dynamic or static depending on whether
 * com.sun.CORBA.ORBUseDynamicStub is true or false.
 */
public static PresentationManager.StubFactoryFactory
    getStubFactoryFactory()
{
    PresentationManager gPM = getPresentationManager();
    boolean useDynamicStubs = gPM.useDynamicStubs() ;
    return gPM.getStubFactoryFactory( useDynamicStubs ) ;
}
 
Example 18
Source File: StubFactoryFactoryDynamicBase.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public PresentationManager.StubFactory createStubFactory(
    String className, boolean isIDLStub, String remoteCodeBase,
    Class expectedClass, ClassLoader classLoader)
{
    Class cls = null ;

    try {
        cls = Util.loadClass( className, remoteCodeBase, classLoader ) ;
    } catch (ClassNotFoundException exc) {
        throw wrapper.classNotFound3(
            CompletionStatus.COMPLETED_MAYBE, exc, className ) ;
    }

    PresentationManager pm = ORB.getPresentationManager() ;

    if (IDLEntity.class.isAssignableFrom( cls ) &&
        !Remote.class.isAssignableFrom( cls )) {
        // IDL stubs must always use static factories.
        PresentationManager.StubFactoryFactory sff =
            pm.getStubFactoryFactory( false ) ;
        PresentationManager.StubFactory sf =
            sff.createStubFactory( className, true, remoteCodeBase,
                expectedClass, classLoader ) ;
        return sf ;
    } else {
        PresentationManager.ClassData classData = pm.getClassData( cls ) ;
        return makeDynamicStubFactory( pm, classData, classLoader ) ;
    }
}
 
Example 19
Source File: ORB.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/** Get the appropriate StubFactoryFactory.  This
 * will be dynamic or static depending on whether
 * com.sun.CORBA.ORBUseDynamicStub is true or false.
 */
public static PresentationManager.StubFactoryFactory
    getStubFactoryFactory()
{
    PresentationManager gPM = getPresentationManager();
    boolean useDynamicStubs = gPM.useDynamicStubs() ;
    return gPM.getStubFactoryFactory( useDynamicStubs ) ;
}
 
Example 20
Source File: StubFactoryFactoryDynamicBase.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public PresentationManager.StubFactory createStubFactory(
    String className, boolean isIDLStub, String remoteCodeBase,
    Class expectedClass, ClassLoader classLoader)
{
    Class cls = null ;

    try {
        cls = Util.loadClass( className, remoteCodeBase, classLoader ) ;
    } catch (ClassNotFoundException exc) {
        throw wrapper.classNotFound3(
            CompletionStatus.COMPLETED_MAYBE, exc, className ) ;
    }

    PresentationManager pm = ORB.getPresentationManager() ;

    if (IDLEntity.class.isAssignableFrom( cls ) &&
        !Remote.class.isAssignableFrom( cls )) {
        // IDL stubs must always use static factories.
        PresentationManager.StubFactoryFactory sff =
            pm.getStubFactoryFactory( false ) ;
        PresentationManager.StubFactory sf =
            sff.createStubFactory( className, true, remoteCodeBase,
                expectedClass, classLoader ) ;
        return sf ;
    } else {
        PresentationManager.ClassData classData = pm.getClassData( cls ) ;
        return makeDynamicStubFactory( pm, classData, classLoader ) ;
    }
}