Java Code Examples for com.sun.corba.se.spi.presentation.rmi.StubAdapter.getTypeIds()

The following are Jave code examples for showing how to use getTypeIds() of the com.sun.corba.se.spi.presentation.rmi.StubAdapter class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: OpenJSharp   File: AnyImpl.java   View Source Code Vote up 6 votes
/**
 * See the description of the <a href="#anyOps">general Any operations.</a>
 */
public void insert_Object(org.omg.CORBA.Object o)
{
    //debug.log ("insert_Object");
    if ( o == null ) {
        typeCode = orb.get_primitive_tc(TCKind._tk_objref);
    } else {
        if (StubAdapter.isStub(o)) {
            String[] ids = StubAdapter.getTypeIds( o ) ;
            typeCode = new TypeCodeImpl(orb, TCKind._tk_objref, ids[0], "");
        } else {
            throw wrapper.badInsertobjParam(
                CompletionStatus.COMPLETED_MAYBE, o.getClass().getName() ) ;
        }
    }

    object = o;
    isInitialized = true;
}
 
Example 2
Project: openjdk-jdk10   File: AnyImpl.java   View Source Code Vote up 6 votes
/**
 * See the description of the <a href="#anyOps">general Any operations.</a>
 */
public void insert_Object(org.omg.CORBA.Object o)
{
    //debug.log ("insert_Object");
    if ( o == null ) {
        typeCode = orb.get_primitive_tc(TCKind._tk_objref);
    } else {
        if (StubAdapter.isStub(o)) {
            String[] ids = StubAdapter.getTypeIds( o ) ;
            typeCode = new TypeCodeImpl(orb, TCKind._tk_objref, ids[0], "");
        } else {
            throw wrapper.badInsertobjParam(
                CompletionStatus.COMPLETED_MAYBE, o.getClass().getName() ) ;
        }
    }

    object = o;
    isInitialized = true;
}
 
Example 3
Project: openjdk9   File: AnyImpl.java   View Source Code Vote up 6 votes
/**
 * See the description of the <a href="#anyOps">general Any operations.</a>
 */
public void insert_Object(org.omg.CORBA.Object o)
{
    //debug.log ("insert_Object");
    if ( o == null ) {
        typeCode = orb.get_primitive_tc(TCKind._tk_objref);
    } else {
        if (StubAdapter.isStub(o)) {
            String[] ids = StubAdapter.getTypeIds( o ) ;
            typeCode = new TypeCodeImpl(orb, TCKind._tk_objref, ids[0], "");
        } else {
            throw wrapper.badInsertobjParam(
                CompletionStatus.COMPLETED_MAYBE, o.getClass().getName() ) ;
        }
    }

    object = o;
    isInitialized = true;
}
 
Example 4
Project: lookaside_java-1.8.0-openjdk   File: AnyImpl.java   View Source Code Vote up 6 votes
/**
 * See the description of the <a href="#anyOps">general Any operations.</a>
 */
public void insert_Object(org.omg.CORBA.Object o)
{
    //debug.log ("insert_Object");
    if ( o == null ) {
        typeCode = orb.get_primitive_tc(TCKind._tk_objref);
    } else {
        if (StubAdapter.isStub(o)) {
            String[] ids = StubAdapter.getTypeIds( o ) ;
            typeCode = new TypeCodeImpl(orb, TCKind._tk_objref, ids[0], "");
        } else {
            throw wrapper.badInsertobjParam(
                CompletionStatus.COMPLETED_MAYBE, o.getClass().getName() ) ;
        }
    }

    object = o;
    isInitialized = true;
}
 
Example 5
Project: jdk8u_corba   File: AnyImpl.java   View Source Code Vote up 6 votes
/**
 * See the description of the <a href="#anyOps">general Any operations.</a>
 */
public void insert_Object(org.omg.CORBA.Object o)
{
    //debug.log ("insert_Object");
    if ( o == null ) {
        typeCode = orb.get_primitive_tc(TCKind._tk_objref);
    } else {
        if (StubAdapter.isStub(o)) {
            String[] ids = StubAdapter.getTypeIds( o ) ;
            typeCode = new TypeCodeImpl(orb, TCKind._tk_objref, ids[0], "");
        } else {
            throw wrapper.badInsertobjParam(
                CompletionStatus.COMPLETED_MAYBE, o.getClass().getName() ) ;
        }
    }

    object = o;
    isInitialized = true;
}
 
Example 6
Project: giv-planner   File: Test75.java   View Source Code Vote up 6 votes
/**
 * See the description of the <a href="#anyOps">general Any operations.</a>
 */
public void insert_Object(org.omg.CORBA.Object o)
{
//debug.log ("insert_Object");
if ( o == null ) {
    typeCode = orb.get_primitive_tc(TCKind._tk_objref);
} else {
    if (StubAdapter.isStub(o)) {
    String[] ids = StubAdapter.getTypeIds( o ) ;
    typeCode = new TypeCodeImpl(orb, TCKind._tk_objref, ids[0], "");
    } else {
    throw wrapper.badInsertobjParam( 
        CompletionStatus.COMPLETED_MAYBE, o.getClass().getName() ) ;
    }
}

object = o;
isInitialized = true;
}
 
Example 7
Project: infobip-open-jdk-8   File: AnyImpl.java   View Source Code Vote up 6 votes
/**
 * See the description of the <a href="#anyOps">general Any operations.</a>
 */
public void insert_Object(org.omg.CORBA.Object o)
{
    //debug.log ("insert_Object");
    if ( o == null ) {
        typeCode = orb.get_primitive_tc(TCKind._tk_objref);
    } else {
        if (StubAdapter.isStub(o)) {
            String[] ids = StubAdapter.getTypeIds( o ) ;
            typeCode = new TypeCodeImpl(orb, TCKind._tk_objref, ids[0], "");
        } else {
            throw wrapper.badInsertobjParam(
                CompletionStatus.COMPLETED_MAYBE, o.getClass().getName() ) ;
        }
    }

    object = o;
    isInitialized = true;
}
 
Example 8
Project: openjdk-source-code-learn   File: AnyImpl.java   View Source Code Vote up 6 votes
/**
 * See the description of the <a href="#anyOps">general Any operations.</a>
 */
public void insert_Object(org.omg.CORBA.Object o)
{
    //debug.log ("insert_Object");
    if ( o == null ) {
        typeCode = orb.get_primitive_tc(TCKind._tk_objref);
    } else {
        if (StubAdapter.isStub(o)) {
            String[] ids = StubAdapter.getTypeIds( o ) ;
            typeCode = new TypeCodeImpl(orb, TCKind._tk_objref, ids[0], "");
        } else {
            throw wrapper.badInsertobjParam(
                CompletionStatus.COMPLETED_MAYBE, o.getClass().getName() ) ;
        }
    }

    object = o;
    isInitialized = true;
}
 
Example 9
Project: OLD-OpenJDK8   File: AnyImpl.java   View Source Code Vote up 6 votes
/**
 * See the description of the <a href="#anyOps">general Any operations.</a>
 */
public void insert_Object(org.omg.CORBA.Object o)
{
    //debug.log ("insert_Object");
    if ( o == null ) {
        typeCode = orb.get_primitive_tc(TCKind._tk_objref);
    } else {
        if (StubAdapter.isStub(o)) {
            String[] ids = StubAdapter.getTypeIds( o ) ;
            typeCode = new TypeCodeImpl(orb, TCKind._tk_objref, ids[0], "");
        } else {
            throw wrapper.badInsertobjParam(
                CompletionStatus.COMPLETED_MAYBE, o.getClass().getName() ) ;
        }
    }

    object = o;
    isInitialized = true;
}
 
Example 10
Project: openjdk-orb   File: AnyImpl.java   View Source Code Vote up 6 votes
/**
 * See the description of the <a href="#anyOps">general Any operations.</a>
 */
public void insert_Object(org.omg.CORBA.Object o)
{
    //debug.log ("insert_Object");
    if ( o == null ) {
        typeCode = orb.get_primitive_tc(TCKind._tk_objref);
    } else {
        if (StubAdapter.isStub(o)) {
            String[] ids = StubAdapter.getTypeIds( o ) ;
            typeCode = new TypeCodeImpl(orb, TCKind._tk_objref, ids[0], "");
        } else {
            throw wrapper.badInsertobjParam(
                CompletionStatus.COMPLETED_MAYBE, o.getClass().getName() ) ;
        }
    }

    object = o;
    isInitialized = true;
}
 
Example 11
Project: openjdk-icedtea7   File: AnyImpl.java   View Source Code Vote up 6 votes
/**
 * See the description of the <a href="#anyOps">general Any operations.</a>
 */
public void insert_Object(org.omg.CORBA.Object o)
{
    //debug.log ("insert_Object");
    if ( o == null ) {
        typeCode = orb.get_primitive_tc(TCKind._tk_objref);
    } else {
        if (StubAdapter.isStub(o)) {
            String[] ids = StubAdapter.getTypeIds( o ) ;
            typeCode = new TypeCodeImpl(orb, TCKind._tk_objref, ids[0], "");
        } else {
            throw wrapper.badInsertobjParam(
                CompletionStatus.COMPLETED_MAYBE, o.getClass().getName() ) ;
        }
    }

    object = o;
    isInitialized = true;
}
 
Example 12
Project: OpenJSharp   File: TOAImpl.java   View Source Code Vote up 5 votes
public void connect( org.omg.CORBA.Object objref)
{
    // Store the objref and get a userkey allocated by the transient
    // object manager.
    byte[] key = servants.storeServant(objref, null);

    // Find out the repository ID for this objref.
    String id = StubAdapter.getTypeIds( objref )[0] ;

    // Create the new objref
    ObjectReferenceFactory orf = getCurrentFactory() ;
    org.omg.CORBA.Object obj = orf.make_object( id, key ) ;

    // Copy the delegate from the new objref to the argument
    // XXX handle the case of an attempt to connect a local object.

    org.omg.CORBA.portable.Delegate delegate = StubAdapter.getDelegate(
        obj ) ;
    CorbaContactInfoList ccil = (CorbaContactInfoList)
        ((ClientDelegate)delegate).getContactInfoList() ;
    LocalClientRequestDispatcher lcs =
        ccil.getLocalClientRequestDispatcher() ;

    if (lcs instanceof JIDLLocalCRDImpl) {
        JIDLLocalCRDImpl jlcs = (JIDLLocalCRDImpl)lcs ;
        jlcs.setServant( objref ) ;
    } else {
        throw new RuntimeException(
            "TOAImpl.connect can not be called on " + lcs ) ;
    }

    StubAdapter.setDelegate( objref, delegate ) ;
}
 
Example 13
Project: OpenJSharp   File: StubFactoryBase.java   View Source Code Vote up 5 votes
public synchronized String[] getTypeIds()
{
    if (typeIds == null) {
        if (classData == null) {
            org.omg.CORBA.Object stub = makeStub() ;
            typeIds = StubAdapter.getTypeIds( stub ) ;
        } else {
            typeIds = classData.getTypeIds() ;
        }
    }

    return typeIds ;
}
 
Example 14
Project: openjdk-jdk10   File: TOAImpl.java   View Source Code Vote up 5 votes
public void connect( org.omg.CORBA.Object objref)
{
    // Store the objref and get a userkey allocated by the transient
    // object manager.
    byte[] key = servants.storeServant(objref, null);

    // Find out the repository ID for this objref.
    String id = StubAdapter.getTypeIds( objref )[0] ;

    // Create the new objref
    ObjectReferenceFactory orf = getCurrentFactory() ;
    org.omg.CORBA.Object obj = orf.make_object( id, key ) ;

    // Copy the delegate from the new objref to the argument
    // XXX handle the case of an attempt to connect a local object.

    org.omg.CORBA.portable.Delegate delegate = StubAdapter.getDelegate(
        obj ) ;
    CorbaContactInfoList ccil = (CorbaContactInfoList)
        ((ClientDelegate)delegate).getContactInfoList() ;
    LocalClientRequestDispatcher lcs =
        ccil.getLocalClientRequestDispatcher() ;

    if (lcs instanceof JIDLLocalCRDImpl) {
        JIDLLocalCRDImpl jlcs = (JIDLLocalCRDImpl)lcs ;
        jlcs.setServant( objref ) ;
    } else {
        throw new RuntimeException(
            "TOAImpl.connect can not be called on " + lcs ) ;
    }

    StubAdapter.setDelegate( objref, delegate ) ;
}
 
Example 15
Project: openjdk-jdk10   File: StubFactoryBase.java   View Source Code Vote up 5 votes
public synchronized String[] getTypeIds()
{
    if (typeIds == null) {
        if (classData == null) {
            org.omg.CORBA.Object stub = makeStub() ;
            typeIds = StubAdapter.getTypeIds( stub ) ;
        } else {
            typeIds = classData.getTypeIds() ;
        }
    }

    return typeIds ;
}
 
Example 16
Project: openjdk9   File: TOAImpl.java   View Source Code Vote up 5 votes
public void connect( org.omg.CORBA.Object objref)
{
    // Store the objref and get a userkey allocated by the transient
    // object manager.
    byte[] key = servants.storeServant(objref, null);

    // Find out the repository ID for this objref.
    String id = StubAdapter.getTypeIds( objref )[0] ;

    // Create the new objref
    ObjectReferenceFactory orf = getCurrentFactory() ;
    org.omg.CORBA.Object obj = orf.make_object( id, key ) ;

    // Copy the delegate from the new objref to the argument
    // XXX handle the case of an attempt to connect a local object.

    org.omg.CORBA.portable.Delegate delegate = StubAdapter.getDelegate(
        obj ) ;
    CorbaContactInfoList ccil = (CorbaContactInfoList)
        ((ClientDelegate)delegate).getContactInfoList() ;
    LocalClientRequestDispatcher lcs =
        ccil.getLocalClientRequestDispatcher() ;

    if (lcs instanceof JIDLLocalCRDImpl) {
        JIDLLocalCRDImpl jlcs = (JIDLLocalCRDImpl)lcs ;
        jlcs.setServant( objref ) ;
    } else {
        throw new RuntimeException(
            "TOAImpl.connect can not be called on " + lcs ) ;
    }

    StubAdapter.setDelegate( objref, delegate ) ;
}
 
Example 17
Project: openjdk9   File: StubFactoryBase.java   View Source Code Vote up 5 votes
public synchronized String[] getTypeIds()
{
    if (typeIds == null) {
        if (classData == null) {
            org.omg.CORBA.Object stub = makeStub() ;
            typeIds = StubAdapter.getTypeIds( stub ) ;
        } else {
            typeIds = classData.getTypeIds() ;
        }
    }

    return typeIds ;
}
 
Example 18
Project: lookaside_java-1.8.0-openjdk   File: TOAImpl.java   View Source Code Vote up 5 votes
public void connect( org.omg.CORBA.Object objref)
{
    // Store the objref and get a userkey allocated by the transient
    // object manager.
    byte[] key = servants.storeServant(objref, null);

    // Find out the repository ID for this objref.
    String id = StubAdapter.getTypeIds( objref )[0] ;

    // Create the new objref
    ObjectReferenceFactory orf = getCurrentFactory() ;
    org.omg.CORBA.Object obj = orf.make_object( id, key ) ;

    // Copy the delegate from the new objref to the argument
    // XXX handle the case of an attempt to connect a local object.

    org.omg.CORBA.portable.Delegate delegate = StubAdapter.getDelegate(
        obj ) ;
    CorbaContactInfoList ccil = (CorbaContactInfoList)
        ((ClientDelegate)delegate).getContactInfoList() ;
    LocalClientRequestDispatcher lcs =
        ccil.getLocalClientRequestDispatcher() ;

    if (lcs instanceof JIDLLocalCRDImpl) {
        JIDLLocalCRDImpl jlcs = (JIDLLocalCRDImpl)lcs ;
        jlcs.setServant( objref ) ;
    } else {
        throw new RuntimeException(
            "TOAImpl.connect can not be called on " + lcs ) ;
    }

    StubAdapter.setDelegate( objref, delegate ) ;
}
 
Example 19
Project: lookaside_java-1.8.0-openjdk   File: StubFactoryBase.java   View Source Code Vote up 5 votes
public synchronized String[] getTypeIds()
{
    if (typeIds == null) {
        if (classData == null) {
            org.omg.CORBA.Object stub = makeStub() ;
            typeIds = StubAdapter.getTypeIds( stub ) ;
        } else {
            typeIds = classData.getTypeIds() ;
        }
    }

    return typeIds ;
}
 
Example 20
Project: jdk8u_corba   File: TOAImpl.java   View Source Code Vote up 5 votes
public void connect( org.omg.CORBA.Object objref)
{
    // Store the objref and get a userkey allocated by the transient
    // object manager.
    byte[] key = servants.storeServant(objref, null);

    // Find out the repository ID for this objref.
    String id = StubAdapter.getTypeIds( objref )[0] ;

    // Create the new objref
    ObjectReferenceFactory orf = getCurrentFactory() ;
    org.omg.CORBA.Object obj = orf.make_object( id, key ) ;

    // Copy the delegate from the new objref to the argument
    // XXX handle the case of an attempt to connect a local object.

    org.omg.CORBA.portable.Delegate delegate = StubAdapter.getDelegate(
        obj ) ;
    CorbaContactInfoList ccil = (CorbaContactInfoList)
        ((ClientDelegate)delegate).getContactInfoList() ;
    LocalClientRequestDispatcher lcs =
        ccil.getLocalClientRequestDispatcher() ;

    if (lcs instanceof JIDLLocalCRDImpl) {
        JIDLLocalCRDImpl jlcs = (JIDLLocalCRDImpl)lcs ;
        jlcs.setServant( objref ) ;
    } else {
        throw new RuntimeException(
            "TOAImpl.connect can not be called on " + lcs ) ;
    }

    StubAdapter.setDelegate( objref, delegate ) ;
}
 
Example 21
Project: jdk8u_corba   File: StubFactoryBase.java   View Source Code Vote up 5 votes
public synchronized String[] getTypeIds()
{
    if (typeIds == null) {
        if (classData == null) {
            org.omg.CORBA.Object stub = makeStub() ;
            typeIds = StubAdapter.getTypeIds( stub ) ;
        } else {
            typeIds = classData.getTypeIds() ;
        }
    }

    return typeIds ;
}
 
Example 22
Project: infobip-open-jdk-8   File: TOAImpl.java   View Source Code Vote up 5 votes
public void connect( org.omg.CORBA.Object objref)
{
    // Store the objref and get a userkey allocated by the transient
    // object manager.
    byte[] key = servants.storeServant(objref, null);

    // Find out the repository ID for this objref.
    String id = StubAdapter.getTypeIds( objref )[0] ;

    // Create the new objref
    ObjectReferenceFactory orf = getCurrentFactory() ;
    org.omg.CORBA.Object obj = orf.make_object( id, key ) ;

    // Copy the delegate from the new objref to the argument
    // XXX handle the case of an attempt to connect a local object.

    org.omg.CORBA.portable.Delegate delegate = StubAdapter.getDelegate(
        obj ) ;
    CorbaContactInfoList ccil = (CorbaContactInfoList)
        ((ClientDelegate)delegate).getContactInfoList() ;
    LocalClientRequestDispatcher lcs =
        ccil.getLocalClientRequestDispatcher() ;

    if (lcs instanceof JIDLLocalCRDImpl) {
        JIDLLocalCRDImpl jlcs = (JIDLLocalCRDImpl)lcs ;
        jlcs.setServant( objref ) ;
    } else {
        throw new RuntimeException(
            "TOAImpl.connect can not be called on " + lcs ) ;
    }

    StubAdapter.setDelegate( objref, delegate ) ;
}
 
Example 23
Project: infobip-open-jdk-8   File: StubFactoryBase.java   View Source Code Vote up 5 votes
public synchronized String[] getTypeIds()
{
    if (typeIds == null) {
        if (classData == null) {
            org.omg.CORBA.Object stub = makeStub() ;
            typeIds = StubAdapter.getTypeIds( stub ) ;
        } else {
            typeIds = classData.getTypeIds() ;
        }
    }

    return typeIds ;
}
 
Example 24
Project: openjdk-source-code-learn   File: TOAImpl.java   View Source Code Vote up 5 votes
public void connect( org.omg.CORBA.Object objref)
{
    // Store the objref and get a userkey allocated by the transient
    // object manager.
    byte[] key = servants.storeServant(objref, null);

    // Find out the repository ID for this objref.
    String id = StubAdapter.getTypeIds( objref )[0] ;

    // Create the new objref
    ObjectReferenceFactory orf = getCurrentFactory() ;
    org.omg.CORBA.Object obj = orf.make_object( id, key ) ;

    // Copy the delegate from the new objref to the argument
    // XXX handle the case of an attempt to connect a local object.

    org.omg.CORBA.portable.Delegate delegate = StubAdapter.getDelegate(
        obj ) ;
    CorbaContactInfoList ccil = (CorbaContactInfoList)
        ((ClientDelegate)delegate).getContactInfoList() ;
    LocalClientRequestDispatcher lcs =
        ccil.getLocalClientRequestDispatcher() ;

    if (lcs instanceof JIDLLocalCRDImpl) {
        JIDLLocalCRDImpl jlcs = (JIDLLocalCRDImpl)lcs ;
        jlcs.setServant( objref ) ;
    } else {
        throw new RuntimeException(
            "TOAImpl.connect can not be called on " + lcs ) ;
    }

    StubAdapter.setDelegate( objref, delegate ) ;
}
 
Example 25
Project: openjdk-source-code-learn   File: StubFactoryBase.java   View Source Code Vote up 5 votes
public synchronized String[] getTypeIds()
{
    if (typeIds == null) {
        if (classData == null) {
            org.omg.CORBA.Object stub = makeStub() ;
            typeIds = StubAdapter.getTypeIds( stub ) ;
        } else {
            typeIds = classData.getTypeIds() ;
        }
    }

    return typeIds ;
}
 
Example 26
Project: OLD-OpenJDK8   File: TOAImpl.java   View Source Code Vote up 5 votes
public void connect( org.omg.CORBA.Object objref)
{
    // Store the objref and get a userkey allocated by the transient
    // object manager.
    byte[] key = servants.storeServant(objref, null);

    // Find out the repository ID for this objref.
    String id = StubAdapter.getTypeIds( objref )[0] ;

    // Create the new objref
    ObjectReferenceFactory orf = getCurrentFactory() ;
    org.omg.CORBA.Object obj = orf.make_object( id, key ) ;

    // Copy the delegate from the new objref to the argument
    // XXX handle the case of an attempt to connect a local object.

    org.omg.CORBA.portable.Delegate delegate = StubAdapter.getDelegate(
        obj ) ;
    CorbaContactInfoList ccil = (CorbaContactInfoList)
        ((ClientDelegate)delegate).getContactInfoList() ;
    LocalClientRequestDispatcher lcs =
        ccil.getLocalClientRequestDispatcher() ;

    if (lcs instanceof JIDLLocalCRDImpl) {
        JIDLLocalCRDImpl jlcs = (JIDLLocalCRDImpl)lcs ;
        jlcs.setServant( objref ) ;
    } else {
        throw new RuntimeException(
            "TOAImpl.connect can not be called on " + lcs ) ;
    }

    StubAdapter.setDelegate( objref, delegate ) ;
}
 
Example 27
Project: OLD-OpenJDK8   File: StubFactoryBase.java   View Source Code Vote up 5 votes
public synchronized String[] getTypeIds()
{
    if (typeIds == null) {
        if (classData == null) {
            org.omg.CORBA.Object stub = makeStub() ;
            typeIds = StubAdapter.getTypeIds( stub ) ;
        } else {
            typeIds = classData.getTypeIds() ;
        }
    }

    return typeIds ;
}
 
Example 28
Project: openjdk-orb   File: TOAImpl.java   View Source Code Vote up 5 votes
public void connect( org.omg.CORBA.Object objref)
{
    // Store the objref and get a userkey allocated by the transient
    // object manager.
    byte[] key = servants.storeServant(objref, null);

    // Find out the repository ID for this objref.
    String id = StubAdapter.getTypeIds( objref )[0] ;

    // Create the new objref
    ObjectReferenceFactory orf = getCurrentFactory() ;
    org.omg.CORBA.Object obj = orf.make_object( id, key ) ;

    // Copy the delegate from the new objref to the argument
    // XXX handle the case of an attempt to connect a local object.

    org.omg.CORBA.portable.Delegate delegate = StubAdapter.getDelegate(
        obj ) ;
    CorbaContactInfoList ccil = (CorbaContactInfoList)
        ((ClientDelegate)delegate).getContactInfoList() ;
    LocalClientRequestDispatcher lcs =
        ccil.getLocalClientRequestDispatcher() ;

    if (lcs instanceof JIDLLocalCRDImpl) {
        JIDLLocalCRDImpl jlcs = (JIDLLocalCRDImpl)lcs ;
        jlcs.setServant( objref ) ;
    } else {
        throw new RuntimeException(
            "TOAImpl.connect can not be called on " + lcs ) ;
    }

    StubAdapter.setDelegate( objref, delegate ) ;
}
 
Example 29
Project: openjdk-orb   File: StubFactoryBase.java   View Source Code Vote up 5 votes
public synchronized String[] getTypeIds()
{
    if (typeIds == null) {
        if (classData == null) {
            org.omg.CORBA.Object stub = makeStub() ;
            typeIds = StubAdapter.getTypeIds( stub ) ;
        } else {
            typeIds = classData.getTypeIds() ;
        }
    }

    return typeIds ;
}
 
Example 30
Project: openjdk-icedtea7   File: TOAImpl.java   View Source Code Vote up 5 votes
public void connect( org.omg.CORBA.Object objref)
{
    // Store the objref and get a userkey allocated by the transient
    // object manager.
    byte[] key = servants.storeServant(objref, null);

    // Find out the repository ID for this objref.
    String id = StubAdapter.getTypeIds( objref )[0] ;

    // Create the new objref
    ObjectReferenceFactory orf = getCurrentFactory() ;
    org.omg.CORBA.Object obj = orf.make_object( id, key ) ;

    // Copy the delegate from the new objref to the argument
    // XXX handle the case of an attempt to connect a local object.

    org.omg.CORBA.portable.Delegate delegate = StubAdapter.getDelegate(
        obj ) ;
    CorbaContactInfoList ccil = (CorbaContactInfoList)
        ((ClientDelegate)delegate).getContactInfoList() ;
    LocalClientRequestDispatcher lcs =
        ccil.getLocalClientRequestDispatcher() ;

    if (lcs instanceof JIDLLocalCRDImpl) {
        JIDLLocalCRDImpl jlcs = (JIDLLocalCRDImpl)lcs ;
        jlcs.setServant( objref ) ;
    } else {
        throw new RuntimeException(
            "TOAImpl.connect can not be called on " + lcs ) ;
    }

    StubAdapter.setDelegate( objref, delegate ) ;
}
 
Example 31
Project: openjdk-icedtea7   File: StubFactoryBase.java   View Source Code Vote up 5 votes
public synchronized String[] getTypeIds()
{
    if (typeIds == null) {
        if (classData == null) {
            org.omg.CORBA.Object stub = makeStub() ;
            typeIds = StubAdapter.getTypeIds( stub ) ;
        } else {
            typeIds = classData.getTypeIds() ;
        }
    }

    return typeIds ;
}
 
Example 32
Project: OpenJSharp   File: TOAImpl.java   View Source Code Vote up 4 votes
/** Return the most derived interface for the given servant and objectId.
*/
public String[] getInterfaces( Object servant, byte[] objectId )
{
    return StubAdapter.getTypeIds( servant ) ;
}
 
Example 33
Project: openjdk-jdk10   File: TOAImpl.java   View Source Code Vote up 4 votes
/** Return the most derived interface for the given servant and objectId.
*/
public String[] getInterfaces( Object servant, byte[] objectId )
{
    return StubAdapter.getTypeIds( servant ) ;
}
 
Example 34
Project: openjdk9   File: TOAImpl.java   View Source Code Vote up 4 votes
/** Return the most derived interface for the given servant and objectId.
*/
public String[] getInterfaces( Object servant, byte[] objectId )
{
    return StubAdapter.getTypeIds( servant ) ;
}
 
Example 35
Project: lookaside_java-1.8.0-openjdk   File: TOAImpl.java   View Source Code Vote up 4 votes
/** Return the most derived interface for the given servant and objectId.
*/
public String[] getInterfaces( Object servant, byte[] objectId )
{
    return StubAdapter.getTypeIds( servant ) ;
}
 
Example 36
Project: jdk8u_corba   File: TOAImpl.java   View Source Code Vote up 4 votes
/** Return the most derived interface for the given servant and objectId.
*/
public String[] getInterfaces( Object servant, byte[] objectId )
{
    return StubAdapter.getTypeIds( servant ) ;
}
 
Example 37
Project: infobip-open-jdk-8   File: TOAImpl.java   View Source Code Vote up 4 votes
/** Return the most derived interface for the given servant and objectId.
*/
public String[] getInterfaces( Object servant, byte[] objectId )
{
    return StubAdapter.getTypeIds( servant ) ;
}
 
Example 38
Project: openjdk-source-code-learn   File: TOAImpl.java   View Source Code Vote up 4 votes
/** Return the most derived interface for the given servant and objectId.
*/
public String[] getInterfaces( Object servant, byte[] objectId )
{
    return StubAdapter.getTypeIds( servant ) ;
}
 
Example 39
Project: OLD-OpenJDK8   File: TOAImpl.java   View Source Code Vote up 4 votes
/** Return the most derived interface for the given servant and objectId.
*/
public String[] getInterfaces( Object servant, byte[] objectId )
{
    return StubAdapter.getTypeIds( servant ) ;
}
 
Example 40
Project: openjdk-orb   File: TOAImpl.java   View Source Code Vote up 4 votes
/** Return the most derived interface for the given servant and objectId.
*/
public String[] getInterfaces( Object servant, byte[] objectId )
{
    return StubAdapter.getTypeIds( servant ) ;
}
 
Example 41
Project: openjdk-icedtea7   File: TOAImpl.java   View Source Code Vote up 4 votes
/** Return the most derived interface for the given servant and objectId.
*/
public String[] getInterfaces( Object servant, byte[] objectId )
{
    return StubAdapter.getTypeIds( servant ) ;
}