Java Code Examples for org.omg.CORBA.ORB#connect()

The following examples show how to use org.omg.CORBA.ORB#connect() . 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: StubAdapter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
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() ;
}
 
Example 2
Source File: ServerMain.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
ServerCallback(ORB orb, Method installMethod, Method uninstallMethod,
    Method shutdownMethod )
{
    this.orb = orb;
    this.installMethod = installMethod ;
    this.uninstallMethod = uninstallMethod ;
    this.shutdownMethod = shutdownMethod ;

    orb.connect( this ) ;

    methodArgs = new Object[] { orb } ;
}
 
Example 3
Source File: StubAdapter.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
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() ;
}
 
Example 4
Source File: ServerMain.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
ServerCallback(ORB orb, Method installMethod, Method uninstallMethod,
    Method shutdownMethod )
{
    this.orb = orb;
    this.installMethod = installMethod ;
    this.uninstallMethod = uninstallMethod ;
    this.shutdownMethod = shutdownMethod ;

    orb.connect( this ) ;

    methodArgs = new Object[] { orb } ;
}
 
Example 5
Source File: StubAdapter.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
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() ;
}
 
Example 6
Source File: ServerMain.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
ServerCallback(ORB orb, Method installMethod, Method uninstallMethod,
    Method shutdownMethod )
{
    this.orb = orb;
    this.installMethod = installMethod ;
    this.uninstallMethod = uninstallMethod ;
    this.shutdownMethod = shutdownMethod ;

    orb.connect( this ) ;

    methodArgs = new Object[] { orb } ;
}
 
Example 7
Source File: StubAdapter.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
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() ;
}
 
Example 8
Source File: ServerMain.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
ServerCallback(ORB orb, Method installMethod, Method uninstallMethod,
    Method shutdownMethod )
{
    this.orb = orb;
    this.installMethod = installMethod ;
    this.uninstallMethod = uninstallMethod ;
    this.shutdownMethod = shutdownMethod ;

    orb.connect( this ) ;

    methodArgs = new Object[] { orb } ;
}
 
Example 9
Source File: StubAdapter.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
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() ;
}
 
Example 10
Source File: ServerMain.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
ServerCallback(ORB orb, Method installMethod, Method uninstallMethod,
    Method shutdownMethod )
{
    this.orb = orb;
    this.installMethod = installMethod ;
    this.uninstallMethod = uninstallMethod ;
    this.shutdownMethod = shutdownMethod ;

    orb.connect( this ) ;

    methodArgs = new Object[] { orb } ;
}
 
Example 11
Source File: StubAdapter.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
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() ;
}
 
Example 12
Source File: ServerMain.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
ServerCallback(ORB orb, Method installMethod, Method uninstallMethod,
    Method shutdownMethod )
{
    this.orb = orb;
    this.installMethod = installMethod ;
    this.uninstallMethod = uninstallMethod ;
    this.shutdownMethod = shutdownMethod ;

    orb.connect( this ) ;

    methodArgs = new Object[] { orb } ;
}
 
Example 13
Source File: StubAdapter.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
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() ;
}
 
Example 14
Source File: ServerMain.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
ServerCallback(ORB orb, Method installMethod, Method uninstallMethod,
    Method shutdownMethod )
{
    this.orb = orb;
    this.installMethod = installMethod ;
    this.uninstallMethod = uninstallMethod ;
    this.shutdownMethod = shutdownMethod ;

    orb.connect( this ) ;

    methodArgs = new Object[] { orb } ;
}
 
Example 15
Source File: StubAdapter.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
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() ;
}
 
Example 16
Source File: ServerMain.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
ServerCallback(ORB orb, Method installMethod, Method uninstallMethod,
    Method shutdownMethod )
{
    this.orb = orb;
    this.installMethod = installMethod ;
    this.uninstallMethod = uninstallMethod ;
    this.shutdownMethod = shutdownMethod ;

    orb.connect( this ) ;

    methodArgs = new Object[] { orb } ;
}
 
Example 17
Source File: StubAdapter.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
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() ;
}
 
Example 18
Source File: ServerMain.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
ServerCallback(ORB orb, Method installMethod, Method uninstallMethod,
    Method shutdownMethod )
{
    this.orb = orb;
    this.installMethod = installMethod ;
    this.uninstallMethod = uninstallMethod ;
    this.shutdownMethod = shutdownMethod ;

    orb.connect( this ) ;

    methodArgs = new Object[] { orb } ;
}
 
Example 19
Source File: StubAdapter.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
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() ;
}
 
Example 20
Source File: ServerMain.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
ServerCallback(ORB orb, Method installMethod, Method uninstallMethod,
    Method shutdownMethod )
{
    this.orb = orb;
    this.installMethod = installMethod ;
    this.uninstallMethod = uninstallMethod ;
    this.shutdownMethod = shutdownMethod ;

    orb.connect( this ) ;

    methodArgs = new Object[] { orb } ;
}