类org.omg.CORBA.portable.ObjectImpl源码实例Demo

下面列出了怎么用org.omg.CORBA.portable.ObjectImpl的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: jdk1.8-source-analysis   文件: StubAdapter.java
/** Given any Tie, return the corresponding object refernce, activating
 * the Servant if necessary.
 */
public static org.omg.CORBA.Object activateTie( Tie tie )
{
    /** Any implementation of Tie should be either a Servant or an ObjectImpl,
     * depending on which style of code generation is used.  rmic -iiop by
     * default results in an ObjectImpl-based Tie, while rmic -iiop -poa
     * results in a Servant-based Tie.  Dynamic RMI-IIOP also uses Servant-based
     * Ties (see impl.presentation.rmi.ReflectiveTie).
     */
    if (tie instanceof ObjectImpl) {
        return tie.thisObject() ;
    } else if (tie instanceof Servant) {
        Servant servant = (Servant)tie ;
        return activateServant( servant ) ;
    } else {
        throw wrapper.badActivateTieCall() ;
    }
}
 
源代码2 项目: TencentKona-8   文件: StubAdapter.java
/** Given any Tie, return the corresponding object refernce, activating
 * the Servant if necessary.
 */
public static org.omg.CORBA.Object activateTie( Tie tie )
{
    /** Any implementation of Tie should be either a Servant or an ObjectImpl,
     * depending on which style of code generation is used.  rmic -iiop by
     * default results in an ObjectImpl-based Tie, while rmic -iiop -poa
     * results in a Servant-based Tie.  Dynamic RMI-IIOP also uses Servant-based
     * Ties (see impl.presentation.rmi.ReflectiveTie).
     */
    if (tie instanceof ObjectImpl) {
        return tie.thisObject() ;
    } else if (tie instanceof Servant) {
        Servant servant = (Servant)tie ;
        return activateServant( servant ) ;
    } else {
        throw wrapper.badActivateTieCall() ;
    }
}
 
源代码3 项目: jdk8u60   文件: StubAdapter.java
/** Given any Tie, return the corresponding object refernce, activating
 * the Servant if necessary.
 */
public static org.omg.CORBA.Object activateTie( Tie tie )
{
    /** Any implementation of Tie should be either a Servant or an ObjectImpl,
     * depending on which style of code generation is used.  rmic -iiop by
     * default results in an ObjectImpl-based Tie, while rmic -iiop -poa
     * results in a Servant-based Tie.  Dynamic RMI-IIOP also uses Servant-based
     * Ties (see impl.presentation.rmi.ReflectiveTie).
     */
    if (tie instanceof ObjectImpl) {
        return tie.thisObject() ;
    } else if (tie instanceof Servant) {
        Servant servant = (Servant)tie ;
        return activateServant( servant ) ;
    } else {
        throw wrapper.badActivateTieCall() ;
    }
}
 
源代码4 项目: JDKSourceCode1.8   文件: StubAdapter.java
/** Given any Tie, return the corresponding object refernce, activating
 * the Servant if necessary.
 */
public static org.omg.CORBA.Object activateTie( Tie tie )
{
    /** Any implementation of Tie should be either a Servant or an ObjectImpl,
     * depending on which style of code generation is used.  rmic -iiop by
     * default results in an ObjectImpl-based Tie, while rmic -iiop -poa
     * results in a Servant-based Tie.  Dynamic RMI-IIOP also uses Servant-based
     * Ties (see impl.presentation.rmi.ReflectiveTie).
     */
    if (tie instanceof ObjectImpl) {
        return tie.thisObject() ;
    } else if (tie instanceof Servant) {
        Servant servant = (Servant)tie ;
        return activateServant( servant ) ;
    } else {
        throw wrapper.badActivateTieCall() ;
    }
}
 
源代码5 项目: openjdk-jdk8u   文件: StubAdapter.java
/** Given any Tie, return the corresponding object refernce, activating
 * the Servant if necessary.
 */
public static org.omg.CORBA.Object activateTie( Tie tie )
{
    /** Any implementation of Tie should be either a Servant or an ObjectImpl,
     * depending on which style of code generation is used.  rmic -iiop by
     * default results in an ObjectImpl-based Tie, while rmic -iiop -poa
     * results in a Servant-based Tie.  Dynamic RMI-IIOP also uses Servant-based
     * Ties (see impl.presentation.rmi.ReflectiveTie).
     */
    if (tie instanceof ObjectImpl) {
        return tie.thisObject() ;
    } else if (tie instanceof Servant) {
        Servant servant = (Servant)tie ;
        return activateServant( servant ) ;
    } else {
        throw wrapper.badActivateTieCall() ;
    }
}
 
源代码6 项目: openjdk-jdk8u-backup   文件: StubAdapter.java
/** Given any Tie, return the corresponding object refernce, activating
 * the Servant if necessary.
 */
public static org.omg.CORBA.Object activateTie( Tie tie )
{
    /** Any implementation of Tie should be either a Servant or an ObjectImpl,
     * depending on which style of code generation is used.  rmic -iiop by
     * default results in an ObjectImpl-based Tie, while rmic -iiop -poa
     * results in a Servant-based Tie.  Dynamic RMI-IIOP also uses Servant-based
     * Ties (see impl.presentation.rmi.ReflectiveTie).
     */
    if (tie instanceof ObjectImpl) {
        return tie.thisObject() ;
    } else if (tie instanceof Servant) {
        Servant servant = (Servant)tie ;
        return activateServant( servant ) ;
    } else {
        throw wrapper.badActivateTieCall() ;
    }
}
 
源代码7 项目: openjdk-8   文件: StubAdapter.java
/** Given any Tie, return the corresponding object refernce, activating
 * the Servant if necessary.
 */
public static org.omg.CORBA.Object activateTie( Tie tie )
{
    /** Any implementation of Tie should be either a Servant or an ObjectImpl,
     * depending on which style of code generation is used.  rmic -iiop by
     * default results in an ObjectImpl-based Tie, while rmic -iiop -poa
     * results in a Servant-based Tie.  Dynamic RMI-IIOP also uses Servant-based
     * Ties (see impl.presentation.rmi.ReflectiveTie).
     */
    if (tie instanceof ObjectImpl) {
        return tie.thisObject() ;
    } else if (tie instanceof Servant) {
        Servant servant = (Servant)tie ;
        return activateServant( servant ) ;
    } else {
        throw wrapper.badActivateTieCall() ;
    }
}
 
源代码8 项目: openjdk-8-source   文件: StubAdapter.java
/** Given any Tie, return the corresponding object refernce, activating
 * the Servant if necessary.
 */
public static org.omg.CORBA.Object activateTie( Tie tie )
{
    /** Any implementation of Tie should be either a Servant or an ObjectImpl,
     * depending on which style of code generation is used.  rmic -iiop by
     * default results in an ObjectImpl-based Tie, while rmic -iiop -poa
     * results in a Servant-based Tie.  Dynamic RMI-IIOP also uses Servant-based
     * Ties (see impl.presentation.rmi.ReflectiveTie).
     */
    if (tie instanceof ObjectImpl) {
        return tie.thisObject() ;
    } else if (tie instanceof Servant) {
        Servant servant = (Servant)tie ;
        return activateServant( servant ) ;
    } else {
        throw wrapper.badActivateTieCall() ;
    }
}
 
源代码9 项目: jdk1.8-source-analysis   文件: StubAdapter.java
public static void setDelegate( Object stub, Delegate delegate )
{
    if (stub instanceof DynamicStub)
        ((DynamicStub)stub).setDelegate( delegate ) ;
    else if (stub instanceof ObjectImpl)
        ((ObjectImpl)stub)._set_delegate( delegate ) ;
    else
        throw wrapper.setDelegateRequiresStub() ;
}
 
源代码10 项目: jdk1.8-source-analysis   文件: StubAdapter.java
/** This also gets the delegate from a Servant by
 * using Servant._this_object()
 */
public static Delegate getDelegate( Object stub )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).getDelegate() ;
    else if (stub instanceof ObjectImpl)
        return ((ObjectImpl)stub)._get_delegate() ;
    else if (stub instanceof Tie) {
        Tie tie = (Tie)stub ;
        org.omg.CORBA.Object ref = activateTie( tie ) ;
        return getDelegate( ref ) ;
    } else
        throw wrapper.getDelegateRequiresStub() ;
}
 
源代码11 项目: jdk1.8-source-analysis   文件: StubAdapter.java
public static ORB getORB( Object stub )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).getORB() ;
    else if (stub instanceof ObjectImpl)
        return (ORB)((ObjectImpl)stub)._orb() ;
    else
        throw wrapper.getOrbRequiresStub() ;
}
 
源代码12 项目: openjdk-8-source   文件: StubAdapter.java
public static void connect( Object stub,
    ORB orb ) throws java.rmi.RemoteException
{
    if (stub instanceof DynamicStub)
        ((DynamicStub)stub).connect(
            (com.sun.corba.se.spi.orb.ORB)orb ) ;
    else if (stub instanceof javax.rmi.CORBA.Stub)
        ((javax.rmi.CORBA.Stub)stub).connect( orb ) ;
    else if (stub instanceof ObjectImpl)
        orb.connect( (org.omg.CORBA.Object)stub ) ;
    else
        throw wrapper.connectRequiresStub() ;
}
 
源代码13 项目: jdk1.8-source-analysis   文件: StubAdapter.java
public static void connect( Object stub,
    ORB orb ) throws java.rmi.RemoteException
{
    if (stub instanceof DynamicStub)
        ((DynamicStub)stub).connect(
            (com.sun.corba.se.spi.orb.ORB)orb ) ;
    else if (stub instanceof javax.rmi.CORBA.Stub)
        ((javax.rmi.CORBA.Stub)stub).connect( orb ) ;
    else if (stub instanceof ObjectImpl)
        orb.connect( (org.omg.CORBA.Object)stub ) ;
    else
        throw wrapper.connectRequiresStub() ;
}
 
源代码14 项目: openjdk-8-source   文件: StubAdapter.java
public static void setDelegate( Object stub, Delegate delegate )
{
    if (stub instanceof DynamicStub)
        ((DynamicStub)stub).setDelegate( delegate ) ;
    else if (stub instanceof ObjectImpl)
        ((ObjectImpl)stub)._set_delegate( delegate ) ;
    else
        throw wrapper.setDelegateRequiresStub() ;
}
 
源代码15 项目: jdk1.8-source-analysis   文件: StubAdapter.java
public static OutputStream request( Object stub,
    String operation, boolean responseExpected )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).request( operation,
            responseExpected ) ;
    else if (stub instanceof ObjectImpl)
        return ((ObjectImpl)stub)._request( operation,
            responseExpected ) ;
    else
        throw wrapper.requestRequiresStub() ;
}
 
源代码16 项目: TencentKona-8   文件: StubAdapter.java
public static void setDelegate( Object stub, Delegate delegate )
{
    if (stub instanceof DynamicStub)
        ((DynamicStub)stub).setDelegate( delegate ) ;
    else if (stub instanceof ObjectImpl)
        ((ObjectImpl)stub)._set_delegate( delegate ) ;
    else
        throw wrapper.setDelegateRequiresStub() ;
}
 
源代码17 项目: TencentKona-8   文件: StubAdapter.java
/** This also gets the delegate from a Servant by
 * using Servant._this_object()
 */
public static Delegate getDelegate( Object stub )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).getDelegate() ;
    else if (stub instanceof ObjectImpl)
        return ((ObjectImpl)stub)._get_delegate() ;
    else if (stub instanceof Tie) {
        Tie tie = (Tie)stub ;
        org.omg.CORBA.Object ref = activateTie( tie ) ;
        return getDelegate( ref ) ;
    } else
        throw wrapper.getDelegateRequiresStub() ;
}
 
源代码18 项目: TencentKona-8   文件: StubAdapter.java
public static ORB getORB( Object stub )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).getORB() ;
    else if (stub instanceof ObjectImpl)
        return (ORB)((ObjectImpl)stub)._orb() ;
    else
        throw wrapper.getOrbRequiresStub() ;
}
 
源代码19 项目: TencentKona-8   文件: StubAdapter.java
public static String[] getTypeIds( Object stub )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).getTypeIds() ;
    else if (stub instanceof ObjectImpl)
        return ((ObjectImpl)stub)._ids() ;
    else
        throw wrapper.getTypeIdsRequiresStub() ;
}
 
源代码20 项目: TencentKona-8   文件: StubAdapter.java
public static boolean isLocal( Object stub )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).isLocal() ;
    else if (stub instanceof ObjectImpl)
        return ((ObjectImpl)stub)._is_local() ;
    else
        throw wrapper.isLocalRequiresStub() ;
}
 
源代码21 项目: jdk8u60   文件: StubAdapter.java
public static void setDelegate( Object stub, Delegate delegate )
{
    if (stub instanceof DynamicStub)
        ((DynamicStub)stub).setDelegate( delegate ) ;
    else if (stub instanceof ObjectImpl)
        ((ObjectImpl)stub)._set_delegate( delegate ) ;
    else
        throw wrapper.setDelegateRequiresStub() ;
}
 
源代码22 项目: jdk8u60   文件: StubAdapter.java
/** This also gets the delegate from a Servant by
 * using Servant._this_object()
 */
public static Delegate getDelegate( Object stub )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).getDelegate() ;
    else if (stub instanceof ObjectImpl)
        return ((ObjectImpl)stub)._get_delegate() ;
    else if (stub instanceof Tie) {
        Tie tie = (Tie)stub ;
        org.omg.CORBA.Object ref = activateTie( tie ) ;
        return getDelegate( ref ) ;
    } else
        throw wrapper.getDelegateRequiresStub() ;
}
 
源代码23 项目: jdk8u60   文件: StubAdapter.java
public static ORB getORB( Object stub )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).getORB() ;
    else if (stub instanceof ObjectImpl)
        return (ORB)((ObjectImpl)stub)._orb() ;
    else
        throw wrapper.getOrbRequiresStub() ;
}
 
源代码24 项目: openjdk-8   文件: StubAdapter.java
/** This also gets the delegate from a Servant by
 * using Servant._this_object()
 */
public static Delegate getDelegate( Object stub )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).getDelegate() ;
    else if (stub instanceof ObjectImpl)
        return ((ObjectImpl)stub)._get_delegate() ;
    else if (stub instanceof Tie) {
        Tie tie = (Tie)stub ;
        org.omg.CORBA.Object ref = activateTie( tie ) ;
        return getDelegate( ref ) ;
    } else
        throw wrapper.getDelegateRequiresStub() ;
}
 
源代码25 项目: jdk8u60   文件: StubAdapter.java
public static void connect( Object stub,
    ORB orb ) throws java.rmi.RemoteException
{
    if (stub instanceof DynamicStub)
        ((DynamicStub)stub).connect(
            (com.sun.corba.se.spi.orb.ORB)orb ) ;
    else if (stub instanceof javax.rmi.CORBA.Stub)
        ((javax.rmi.CORBA.Stub)stub).connect( orb ) ;
    else if (stub instanceof ObjectImpl)
        orb.connect( (org.omg.CORBA.Object)stub ) ;
    else
        throw wrapper.connectRequiresStub() ;
}
 
源代码26 项目: jdk8u60   文件: StubAdapter.java
public static boolean isLocal( Object stub )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).isLocal() ;
    else if (stub instanceof ObjectImpl)
        return ((ObjectImpl)stub)._is_local() ;
    else
        throw wrapper.isLocalRequiresStub() ;
}
 
源代码27 项目: jdk8u60   文件: StubAdapter.java
public static OutputStream request( Object stub,
    String operation, boolean responseExpected )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).request( operation,
            responseExpected ) ;
    else if (stub instanceof ObjectImpl)
        return ((ObjectImpl)stub)._request( operation,
            responseExpected ) ;
    else
        throw wrapper.requestRequiresStub() ;
}
 
源代码28 项目: openjdk-8-source   文件: StubAdapter.java
public static ORB getORB( Object stub )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).getORB() ;
    else if (stub instanceof ObjectImpl)
        return (ORB)((ObjectImpl)stub)._orb() ;
    else
        throw wrapper.getOrbRequiresStub() ;
}
 
源代码29 项目: openjdk-8-source   文件: StubAdapter.java
public static boolean isLocal( Object stub )
{
    if (stub instanceof DynamicStub)
        return ((DynamicStub)stub).isLocal() ;
    else if (stub instanceof ObjectImpl)
        return ((ObjectImpl)stub)._is_local() ;
    else
        throw wrapper.isLocalRequiresStub() ;
}
 
源代码30 项目: JDKSourceCode1.8   文件: StubAdapter.java
public static void setDelegate( Object stub, Delegate delegate )
{
    if (stub instanceof DynamicStub)
        ((DynamicStub)stub).setDelegate( delegate ) ;
    else if (stub instanceof ObjectImpl)
        ((ObjectImpl)stub)._set_delegate( delegate ) ;
    else
        throw wrapper.setDelegateRequiresStub() ;
}
 
 类所在包
 类方法
 同包方法