com.sun.corba.se.spi.transport.CorbaContactInfoListFactory Java Examples

The following examples show how to use com.sun.corba.se.spi.transport.CorbaContactInfoListFactory. 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 Project: openjdk-8   Author: bpupadhyaya   File: ORBImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void setCorbaContactInfoListFactory( CorbaContactInfoListFactory factory )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (corbaContactInfoListFactoryAccessLock) {
        corbaContactInfoListFactory = factory ;
    }
}
 
Example #2
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ParserTable.java    License: Apache License 2.0 5 votes vote down vote up
private Operation makeContactInfoListFactoryOperation()
{
    Operation op = new Operation() {
        public Object operate( Object value )
        {
            String param = (String)value ;

            try {
                Class<?> contactInfoListFactoryClass =
                    SharedSecrets.getJavaCorbaAccess().loadClass(param);
                // For security reasons avoid creating an instance if
                // this socket factory class is not one that would fail
                // the class cast anyway.
                if (CorbaContactInfoListFactory.class.isAssignableFrom(
                    contactInfoListFactoryClass)) {
                    return contactInfoListFactoryClass.newInstance();
                } else {
                    throw wrapper.illegalContactInfoListFactoryType(
                        contactInfoListFactoryClass.toString() ) ;
                }
            } catch (Exception ex) {
                // ClassNotFoundException, IllegalAccessException,
                // InstantiationException, SecurityException or
                // ClassCastException
                throw wrapper.badContactInfoListFactory( ex, param ) ;
            }
        }
    } ;

    return op ;
}
 
Example #3
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ORBImpl.java    License: Apache License 2.0 5 votes vote down vote up
public void setCorbaContactInfoListFactory( CorbaContactInfoListFactory factory )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (corbaContactInfoListFactoryAccessLock) {
        corbaContactInfoListFactory = factory ;
    }
}
 
Example #4
Source Project: TencentKona-8   Author: Tencent   File: TransportDefault.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static CorbaContactInfoListFactory makeCorbaContactInfoListFactory(
    final ORB broker )
{
    return new CorbaContactInfoListFactory() {
        public void setORB(ORB orb) { }
        public CorbaContactInfoList create( IOR ior ) {
            return new CorbaContactInfoListImpl(
                (com.sun.corba.se.spi.orb.ORB)broker, ior ) ;
        }
    };
}
 
Example #5
Source Project: TencentKona-8   Author: Tencent   File: ParserTable.java    License: GNU General Public License v2.0 5 votes vote down vote up
private Operation makeContactInfoListFactoryOperation()
{
    Operation op = new Operation() {
        public Object operate( Object value )
        {
            String param = (String)value ;

            try {
                Class<?> contactInfoListFactoryClass =
                    SharedSecrets.getJavaCorbaAccess().loadClass(param);
                // For security reasons avoid creating an instance if
                // this socket factory class is not one that would fail
                // the class cast anyway.
                if (CorbaContactInfoListFactory.class.isAssignableFrom(
                    contactInfoListFactoryClass)) {
                    return contactInfoListFactoryClass.newInstance();
                } else {
                    throw wrapper.illegalContactInfoListFactoryType(
                        contactInfoListFactoryClass.toString() ) ;
                }
            } catch (Exception ex) {
                // ClassNotFoundException, IllegalAccessException,
                // InstantiationException, SecurityException or
                // ClassCastException
                throw wrapper.badContactInfoListFactory( ex, param ) ;
            }
        }
    } ;

    return op ;
}
 
Example #6
Source Project: TencentKona-8   Author: Tencent   File: ORBImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void setCorbaContactInfoListFactory( CorbaContactInfoListFactory factory )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (corbaContactInfoListFactoryAccessLock) {
        corbaContactInfoListFactory = factory ;
    }
}
 
Example #7
Source Project: jdk8u60   Author: chenghanpeng   File: TransportDefault.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static CorbaContactInfoListFactory makeCorbaContactInfoListFactory(
    final ORB broker )
{
    return new CorbaContactInfoListFactory() {
        public void setORB(ORB orb) { }
        public CorbaContactInfoList create( IOR ior ) {
            return new CorbaContactInfoListImpl(
                (com.sun.corba.se.spi.orb.ORB)broker, ior ) ;
        }
    };
}
 
Example #8
Source Project: jdk8u60   Author: chenghanpeng   File: ParserTable.java    License: GNU General Public License v2.0 5 votes vote down vote up
private Operation makeContactInfoListFactoryOperation()
{
    Operation op = new Operation() {
        public Object operate( Object value )
        {
            String param = (String)value ;

            try {
                Class<?> contactInfoListFactoryClass =
                    SharedSecrets.getJavaCorbaAccess().loadClass(param);
                // For security reasons avoid creating an instance if
                // this socket factory class is not one that would fail
                // the class cast anyway.
                if (CorbaContactInfoListFactory.class.isAssignableFrom(
                    contactInfoListFactoryClass)) {
                    return contactInfoListFactoryClass.newInstance();
                } else {
                    throw wrapper.illegalContactInfoListFactoryType(
                        contactInfoListFactoryClass.toString() ) ;
                }
            } catch (Exception ex) {
                // ClassNotFoundException, IllegalAccessException,
                // InstantiationException, SecurityException or
                // ClassCastException
                throw wrapper.badContactInfoListFactory( ex, param ) ;
            }
        }
    } ;

    return op ;
}
 
Example #9
Source Project: jdk8u60   Author: chenghanpeng   File: ORBImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void setCorbaContactInfoListFactory( CorbaContactInfoListFactory factory )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (corbaContactInfoListFactoryAccessLock) {
        corbaContactInfoListFactory = factory ;
    }
}
 
Example #10
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: TransportDefault.java    License: MIT License 5 votes vote down vote up
public static CorbaContactInfoListFactory makeCorbaContactInfoListFactory(
    final ORB broker )
{
    return new CorbaContactInfoListFactory() {
        public void setORB(ORB orb) { }
        public CorbaContactInfoList create( IOR ior ) {
            return new CorbaContactInfoListImpl(
                (com.sun.corba.se.spi.orb.ORB)broker, ior ) ;
        }
    };
}
 
Example #11
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: ParserTable.java    License: MIT License 5 votes vote down vote up
private Operation makeContactInfoListFactoryOperation()
{
    Operation op = new Operation() {
        public Object operate( Object value )
        {
            String param = (String)value ;

            try {
                Class<?> contactInfoListFactoryClass =
                    SharedSecrets.getJavaCorbaAccess().loadClass(param);
                // For security reasons avoid creating an instance if
                // this socket factory class is not one that would fail
                // the class cast anyway.
                if (CorbaContactInfoListFactory.class.isAssignableFrom(
                    contactInfoListFactoryClass)) {
                    return contactInfoListFactoryClass.newInstance();
                } else {
                    throw wrapper.illegalContactInfoListFactoryType(
                        contactInfoListFactoryClass.toString() ) ;
                }
            } catch (Exception ex) {
                // ClassNotFoundException, IllegalAccessException,
                // InstantiationException, SecurityException or
                // ClassCastException
                throw wrapper.badContactInfoListFactory( ex, param ) ;
            }
        }
    } ;

    return op ;
}
 
Example #12
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: ORBImpl.java    License: MIT License 5 votes vote down vote up
public void setCorbaContactInfoListFactory( CorbaContactInfoListFactory factory )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (corbaContactInfoListFactoryAccessLock) {
        corbaContactInfoListFactory = factory ;
    }
}
 
Example #13
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: TransportDefault.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static CorbaContactInfoListFactory makeCorbaContactInfoListFactory(
    final ORB broker )
{
    return new CorbaContactInfoListFactory() {
        public void setORB(ORB orb) { }
        public CorbaContactInfoList create( IOR ior ) {
            return new CorbaContactInfoListImpl(
                (com.sun.corba.se.spi.orb.ORB)broker, ior ) ;
        }
    };
}
 
Example #14
Source Project: openjdk-8   Author: bpupadhyaya   File: TransportDefault.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static CorbaContactInfoListFactory makeCorbaContactInfoListFactory(
    final ORB broker )
{
    return new CorbaContactInfoListFactory() {
        public void setORB(ORB orb) { }
        public CorbaContactInfoList create( IOR ior ) {
            return new CorbaContactInfoListImpl(
                (com.sun.corba.se.spi.orb.ORB)broker, ior ) ;
        }
    };
}
 
Example #15
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: TransportDefault.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static CorbaContactInfoListFactory makeCorbaContactInfoListFactory(
    final ORB broker )
{
    return new CorbaContactInfoListFactory() {
        public void setORB(ORB orb) { }
        public CorbaContactInfoList create( IOR ior ) {
            return new CorbaContactInfoListImpl(
                (com.sun.corba.se.spi.orb.ORB)broker, ior ) ;
        }
    };
}
 
Example #16
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: ParserTable.java    License: GNU General Public License v2.0 5 votes vote down vote up
private Operation makeContactInfoListFactoryOperation()
{
    Operation op = new Operation() {
        public Object operate( Object value )
        {
            String param = (String)value ;

            try {
                Class<?> contactInfoListFactoryClass =
                    SharedSecrets.getJavaCorbaAccess().loadClass(param);
                // For security reasons avoid creating an instance if
                // this socket factory class is not one that would fail
                // the class cast anyway.
                if (CorbaContactInfoListFactory.class.isAssignableFrom(
                    contactInfoListFactoryClass)) {
                    return contactInfoListFactoryClass.newInstance();
                } else {
                    throw wrapper.illegalContactInfoListFactoryType(
                        contactInfoListFactoryClass.toString() ) ;
                }
            } catch (Exception ex) {
                // ClassNotFoundException, IllegalAccessException,
                // InstantiationException, SecurityException or
                // ClassCastException
                throw wrapper.badContactInfoListFactory( ex, param ) ;
            }
        }
    } ;

    return op ;
}
 
Example #17
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: ORBImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void setCorbaContactInfoListFactory( CorbaContactInfoListFactory factory )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (corbaContactInfoListFactoryAccessLock) {
        corbaContactInfoListFactory = factory ;
    }
}
 
Example #18
Source Project: openjdk-8   Author: bpupadhyaya   File: ParserTable.java    License: GNU General Public License v2.0 5 votes vote down vote up
private Operation makeContactInfoListFactoryOperation()
{
    Operation op = new Operation() {
        public Object operate( Object value )
        {
            String param = (String)value ;

            try {
                Class<?> contactInfoListFactoryClass =
                    SharedSecrets.getJavaCorbaAccess().loadClass(param);
                // For security reasons avoid creating an instance if
                // this socket factory class is not one that would fail
                // the class cast anyway.
                if (CorbaContactInfoListFactory.class.isAssignableFrom(
                    contactInfoListFactoryClass)) {
                    return contactInfoListFactoryClass.newInstance();
                } else {
                    throw wrapper.illegalContactInfoListFactoryType(
                        contactInfoListFactoryClass.toString() ) ;
                }
            } catch (Exception ex) {
                // ClassNotFoundException, IllegalAccessException,
                // InstantiationException, SecurityException or
                // ClassCastException
                throw wrapper.badContactInfoListFactory( ex, param ) ;
            }
        }
    } ;

    return op ;
}
 
Example #19
Source Project: openjdk-8-source   Author: keerath   File: TransportDefault.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static CorbaContactInfoListFactory makeCorbaContactInfoListFactory(
    final ORB broker )
{
    return new CorbaContactInfoListFactory() {
        public void setORB(ORB orb) { }
        public CorbaContactInfoList create( IOR ior ) {
            return new CorbaContactInfoListImpl(
                (com.sun.corba.se.spi.orb.ORB)broker, ior ) ;
        }
    };
}
 
Example #20
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: ParserTable.java    License: GNU General Public License v2.0 5 votes vote down vote up
private Operation makeContactInfoListFactoryOperation()
{
    Operation op = new Operation() {
        public Object operate( Object value )
        {
            String param = (String)value ;

            try {
                Class<?> contactInfoListFactoryClass =
                    SharedSecrets.getJavaCorbaAccess().loadClass(param);
                // For security reasons avoid creating an instance if
                // this socket factory class is not one that would fail
                // the class cast anyway.
                if (CorbaContactInfoListFactory.class.isAssignableFrom(
                    contactInfoListFactoryClass)) {
                    return contactInfoListFactoryClass.newInstance();
                } else {
                    throw wrapper.illegalContactInfoListFactoryType(
                        contactInfoListFactoryClass.toString() ) ;
                }
            } catch (Exception ex) {
                // ClassNotFoundException, IllegalAccessException,
                // InstantiationException, SecurityException or
                // ClassCastException
                throw wrapper.badContactInfoListFactory( ex, param ) ;
            }
        }
    } ;

    return op ;
}
 
Example #21
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: ORBImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void setCorbaContactInfoListFactory( CorbaContactInfoListFactory factory )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (corbaContactInfoListFactoryAccessLock) {
        corbaContactInfoListFactory = factory ;
    }
}
 
Example #22
Source Project: hottub   Author: dsrg-uoft   File: TransportDefault.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static CorbaContactInfoListFactory makeCorbaContactInfoListFactory(
    final ORB broker )
{
    return new CorbaContactInfoListFactory() {
        public void setORB(ORB orb) { }
        public CorbaContactInfoList create( IOR ior ) {
            return new CorbaContactInfoListImpl(
                (com.sun.corba.se.spi.orb.ORB)broker, ior ) ;
        }
    };
}
 
Example #23
Source Project: openjdk-8-source   Author: keerath   File: ParserTable.java    License: GNU General Public License v2.0 5 votes vote down vote up
private Operation makeContactInfoListFactoryOperation()
{
    Operation op = new Operation() {
        public Object operate( Object value )
        {
            String param = (String)value ;

            try {
                Class<?> contactInfoListFactoryClass =
                    SharedSecrets.getJavaCorbaAccess().loadClass(param);
                // For security reasons avoid creating an instance if
                // this socket factory class is not one that would fail
                // the class cast anyway.
                if (CorbaContactInfoListFactory.class.isAssignableFrom(
                    contactInfoListFactoryClass)) {
                    return contactInfoListFactoryClass.newInstance();
                } else {
                    throw wrapper.illegalContactInfoListFactoryType(
                        contactInfoListFactoryClass.toString() ) ;
                }
            } catch (Exception ex) {
                // ClassNotFoundException, IllegalAccessException,
                // InstantiationException, SecurityException or
                // ClassCastException
                throw wrapper.badContactInfoListFactory( ex, param ) ;
            }
        }
    } ;

    return op ;
}
 
Example #24
Source Project: hottub   Author: dsrg-uoft   File: ORBImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void setCorbaContactInfoListFactory( CorbaContactInfoListFactory factory )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (corbaContactInfoListFactoryAccessLock) {
        corbaContactInfoListFactory = factory ;
    }
}
 
Example #25
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ORBDataParserImpl.java    License: Apache License 2.0 4 votes vote down vote up
public CorbaContactInfoListFactory getCorbaContactInfoListFactory()
{
    return corbaContactInfoListFactory;
}
 
Example #26
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ORBImpl.java    License: Apache License 2.0 4 votes vote down vote up
public synchronized CorbaContactInfoListFactory getCorbaContactInfoListFactory()
{
    checkShutdownState();
    return corbaContactInfoListFactory ;
}
 
Example #27
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ORBSingleton.java    License: Apache License 2.0 4 votes vote down vote up
public void setCorbaContactInfoListFactory( CorbaContactInfoListFactory factory )
{
}
 
Example #28
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ORBSingleton.java    License: Apache License 2.0 4 votes vote down vote up
public CorbaContactInfoListFactory getCorbaContactInfoListFactory()
{
    return getFullORB().getCorbaContactInfoListFactory() ;
}
 
Example #29
Source Project: TencentKona-8   Author: Tencent   File: ORBDataParserImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public CorbaContactInfoListFactory getCorbaContactInfoListFactory()
{
    return corbaContactInfoListFactory;
}
 
Example #30
Source Project: TencentKona-8   Author: Tencent   File: ORBSingleton.java    License: GNU General Public License v2.0 4 votes vote down vote up
public CorbaContactInfoListFactory getCorbaContactInfoListFactory()
{
    return getFullORB().getCorbaContactInfoListFactory() ;
}