com.sun.corba.se.spi.orbutil.closure.Closure Java Examples
The following examples show how to use
com.sun.corba.se.spi.orbutil.closure.Closure.
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: POAFactory.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void registerRootPOA() { // We delay the evaluation of makeRootPOA until // a call to resolve_initial_references( "RootPOA" ). // The Future guarantees that makeRootPOA is only called once. Closure rpClosure = new Closure() { public Object evaluate() { return POAImpl.makeRootPOA( orb ) ; } } ; orb.getLocalResolver().register( ORBConstants.ROOT_POA_NAME, ClosureFactory.makeFuture( rpClosure ) ) ; }
Example #2
Source File: POAFactory.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void registerRootPOA() { // We delay the evaluation of makeRootPOA until // a call to resolve_initial_references( "RootPOA" ). // The Future guarantees that makeRootPOA is only called once. Closure rpClosure = new Closure() { public Object evaluate() { return POAImpl.makeRootPOA( orb ) ; } } ; orb.getLocalResolver().register( ORBConstants.ROOT_POA_NAME, ClosureFactory.makeFuture( rpClosure ) ) ; }
Example #3
Source File: POAFactory.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void registerRootPOA() { // We delay the evaluation of makeRootPOA until // a call to resolve_initial_references( "RootPOA" ). // The Future guarantees that makeRootPOA is only called once. Closure rpClosure = new Closure() { public Object evaluate() { return POAImpl.makeRootPOA( orb ) ; } } ; orb.getLocalResolver().register( ORBConstants.ROOT_POA_NAME, ClosureFactory.makeFuture( rpClosure ) ) ; }
Example #4
Source File: ORBConfiguratorImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void registerInitialReferences( final ORB orb ) { // Register the Dynamic Any factory Closure closure = new Closure() { public java.lang.Object evaluate() { return new DynAnyFactoryImpl( orb ) ; } } ; Closure future = ClosureFactory.makeFuture( closure ) ; orb.getLocalResolver().register( ORBConstants.DYN_ANY_FACTORY_NAME, future ) ; }
Example #5
Source File: LocalResolverImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public synchronized org.omg.CORBA.Object resolve( String name ) { Closure cl = (Closure)nameToClosure.get( name ) ; if (cl == null) return null ; return (org.omg.CORBA.Object)(cl.evaluate()) ; }
Example #6
Source File: LocalResolverImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public synchronized org.omg.CORBA.Object resolve( String name ) { Closure cl = (Closure)nameToClosure.get( name ) ; if (cl == null) return null ; return (org.omg.CORBA.Object)(cl.evaluate()) ; }
Example #7
Source File: ORBConfiguratorImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
private void registerInitialReferences( final ORB orb ) { // Register the Dynamic Any factory Closure closure = new Closure() { public java.lang.Object evaluate() { return new DynAnyFactoryImpl( orb ) ; } } ; Closure future = ClosureFactory.makeFuture( closure ) ; orb.getLocalResolver().register( ORBConstants.DYN_ANY_FACTORY_NAME, future ) ; }
Example #8
Source File: LocalResolverImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public synchronized org.omg.CORBA.Object resolve( String name ) { Closure cl = (Closure)nameToClosure.get( name ) ; if (cl == null) return null ; return (org.omg.CORBA.Object)(cl.evaluate()) ; }
Example #9
Source File: ORBConfiguratorImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private void registerInitialReferences( final ORB orb ) { // Register the Dynamic Any factory Closure closure = new Closure() { public java.lang.Object evaluate() { return new DynAnyFactoryImpl( orb ) ; } } ; Closure future = ClosureFactory.makeFuture( closure ) ; orb.getLocalResolver().register( ORBConstants.DYN_ANY_FACTORY_NAME, future ) ; }
Example #10
Source File: ORBConfiguratorImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
private void registerInitialReferences( final ORB orb ) { // Register the Dynamic Any factory Closure closure = new Closure() { public java.lang.Object evaluate() { return new DynAnyFactoryImpl( orb ) ; } } ; Closure future = ClosureFactory.makeFuture( closure ) ; orb.getLocalResolver().register( ORBConstants.DYN_ANY_FACTORY_NAME, future ) ; }
Example #11
Source File: POAFactory.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void registerRootPOA() { // We delay the evaluation of makeRootPOA until // a call to resolve_initial_references( "RootPOA" ). // The Future guarantees that makeRootPOA is only called once. Closure rpClosure = new Closure() { public Object evaluate() { return POAImpl.makeRootPOA( orb ) ; } } ; orb.getLocalResolver().register( ORBConstants.ROOT_POA_NAME, ClosureFactory.makeFuture( rpClosure ) ) ; }
Example #12
Source File: LocalResolverImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public synchronized org.omg.CORBA.Object resolve( String name ) { Closure cl = (Closure)nameToClosure.get( name ) ; if (cl == null) return null ; return (org.omg.CORBA.Object)(cl.evaluate()) ; }
Example #13
Source File: LocalResolverImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public synchronized org.omg.CORBA.Object resolve( String name ) { Closure cl = (Closure)nameToClosure.get( name ) ; if (cl == null) return null ; return (org.omg.CORBA.Object)(cl.evaluate()) ; }
Example #14
Source File: ORBConfiguratorImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private void registerInitialReferences( final ORB orb ) { // Register the Dynamic Any factory Closure closure = new Closure() { public java.lang.Object evaluate() { return new DynAnyFactoryImpl( orb ) ; } } ; Closure future = ClosureFactory.makeFuture( closure ) ; orb.getLocalResolver().register( ORBConstants.DYN_ANY_FACTORY_NAME, future ) ; }
Example #15
Source File: POAFactory.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public void registerRootPOA() { // We delay the evaluation of makeRootPOA until // a call to resolve_initial_references( "RootPOA" ). // The Future guarantees that makeRootPOA is only called once. Closure rpClosure = new Closure() { public Object evaluate() { return POAImpl.makeRootPOA( orb ) ; } } ; orb.getLocalResolver().register( ORBConstants.ROOT_POA_NAME, ClosureFactory.makeFuture( rpClosure ) ) ; }
Example #16
Source File: ORBConfiguratorImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private void registerInitialReferences( final ORB orb ) { // Register the Dynamic Any factory Closure closure = new Closure() { public java.lang.Object evaluate() { return new DynAnyFactoryImpl( orb ) ; } } ; Closure future = ClosureFactory.makeFuture( closure ) ; orb.getLocalResolver().register( ORBConstants.DYN_ANY_FACTORY_NAME, future ) ; }
Example #17
Source File: LocalResolverImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public synchronized org.omg.CORBA.Object resolve( String name ) { Closure cl = (Closure)nameToClosure.get( name ) ; if (cl == null) return null ; return (org.omg.CORBA.Object)(cl.evaluate()) ; }
Example #18
Source File: LocalResolverImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public synchronized org.omg.CORBA.Object resolve( String name ) { Closure cl = (Closure)nameToClosure.get( name ) ; if (cl == null) return null ; return (org.omg.CORBA.Object)(cl.evaluate()) ; }
Example #19
Source File: POAFactory.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void registerRootPOA() { // We delay the evaluation of makeRootPOA until // a call to resolve_initial_references( "RootPOA" ). // The Future guarantees that makeRootPOA is only called once. Closure rpClosure = new Closure() { public Object evaluate() { return POAImpl.makeRootPOA( orb ) ; } } ; orb.getLocalResolver().register( ORBConstants.ROOT_POA_NAME, ClosureFactory.makeFuture( rpClosure ) ) ; }
Example #20
Source File: ORBConfiguratorImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private void registerInitialReferences( final ORB orb ) { // Register the Dynamic Any factory Closure closure = new Closure() { public java.lang.Object evaluate() { return new DynAnyFactoryImpl( orb ) ; } } ; Closure future = ClosureFactory.makeFuture( closure ) ; orb.getLocalResolver().register( ORBConstants.DYN_ANY_FACTORY_NAME, future ) ; }
Example #21
Source File: POAFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void registerRootPOA() { // We delay the evaluation of makeRootPOA until // a call to resolve_initial_references( "RootPOA" ). // The Future guarantees that makeRootPOA is only called once. Closure rpClosure = new Closure() { public Object evaluate() { return POAImpl.makeRootPOA( orb ) ; } } ; orb.getLocalResolver().register( ORBConstants.ROOT_POA_NAME, ClosureFactory.makeFuture( rpClosure ) ) ; }
Example #22
Source File: LocalResolverImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public synchronized org.omg.CORBA.Object resolve( String name ) { Closure cl = (Closure)nameToClosure.get( name ) ; if (cl == null) return null ; return (org.omg.CORBA.Object)(cl.evaluate()) ; }
Example #23
Source File: ORBConfiguratorImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void registerInitialReferences( final ORB orb ) { // Register the Dynamic Any factory Closure closure = new Closure() { public java.lang.Object evaluate() { return new DynAnyFactoryImpl( orb ) ; } } ; Closure future = ClosureFactory.makeFuture( closure ) ; orb.getLocalResolver().register( ORBConstants.DYN_ANY_FACTORY_NAME, future ) ; }
Example #24
Source File: LocalResolverImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public synchronized org.omg.CORBA.Object resolve( String name ) { Closure cl = (Closure)nameToClosure.get( name ) ; if (cl == null) return null ; return (org.omg.CORBA.Object)(cl.evaluate()) ; }
Example #25
Source File: ORBConfiguratorImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void registerInitialReferences( final ORB orb ) { // Register the Dynamic Any factory Closure closure = new Closure() { public java.lang.Object evaluate() { return new DynAnyFactoryImpl( orb ) ; } } ; Closure future = ClosureFactory.makeFuture( closure ) ; orb.getLocalResolver().register( ORBConstants.DYN_ANY_FACTORY_NAME, future ) ; }
Example #26
Source File: POAFactory.java From hottub with GNU General Public License v2.0 | 5 votes |
public void registerRootPOA() { // We delay the evaluation of makeRootPOA until // a call to resolve_initial_references( "RootPOA" ). // The Future guarantees that makeRootPOA is only called once. Closure rpClosure = new Closure() { public Object evaluate() { return POAImpl.makeRootPOA( orb ) ; } } ; orb.getLocalResolver().register( ORBConstants.ROOT_POA_NAME, ClosureFactory.makeFuture( rpClosure ) ) ; }
Example #27
Source File: ORBSingleton.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public void registerInitialReference( String id, Closure closure ) { }
Example #28
Source File: LocalResolverImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public synchronized void register( String name, Closure closure ) { nameToClosure.put( name, closure ) ; }
Example #29
Source File: Future.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public Future( Closure value ) { this.evaluated = false ; this.closure = (Closure)value ; this.value = null ; }
Example #30
Source File: ORBSingleton.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public void registerInitialReference( String id, Closure closure ) { }