com.sun.corba.se.spi.orbutil.closure.ClosureFactory Java Examples
The following examples show how to use
com.sun.corba.se.spi.orbutil.closure.ClosureFactory.
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: 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 #2
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 #3
Source File: PIHandlerImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public PIHandlerImpl( ORB orb, String[] args ) { this.orb = orb ; wrapper = InterceptorsSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; orbutilWrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; omgWrapper = OMGSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; arguments = args ; // Create codec factory: codecFactory = new CodecFactoryImpl( orb ); // Create new interceptor list: interceptorList = new InterceptorList( wrapper ); // Create a new PICurrent. current = new PICurrent( orb ); // Create new interceptor invoker, initially disabled: interceptorInvoker = new InterceptorInvoker( orb, interceptorList, current ); // Register the PI current and Codec factory objects orb.getLocalResolver().register( ORBConstants.PI_CURRENT_NAME, ClosureFactory.makeConstant( current ) ) ; orb.getLocalResolver().register( ORBConstants.CODEC_FACTORY_NAME, ClosureFactory.makeConstant( codecFactory ) ) ; }
Example #4
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 #5
Source File: ORBImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * If this operation is called with an id, <code>"Y"</code>, and an * object, <code>YY</code>, then a subsequent call to * <code>ORB.resolve_initial_references( "Y" )</code> will * return object <code>YY</code>. * * @param id The ID by which the initial reference will be known. * @param obj The initial reference itself. * @throws InvalidName if this operation is called with an empty string id * or this operation is called with an id that is already registered, * including the default names defined by OMG. * @throws BAD_PARAM if the obj parameter is null. */ public void register_initial_reference( String id, org.omg.CORBA.Object obj ) throws InvalidName { CorbaServerRequestDispatcher insnd ; synchronized (this) { checkShutdownState(); } if ((id == null) || (id.length() == 0)) throw new InvalidName() ; synchronized (this) { checkShutdownState(); } synchronized (resolverLock) { insnd = insNamingDelegate ; java.lang.Object obj2 = localResolver.resolve( id ) ; if (obj2 != null) throw new InvalidName(id + " already registered") ; localResolver.register( id, ClosureFactory.makeConstant( obj )) ; } synchronized (this) { if (StubAdapter.isStub(obj)) // Make all remote object references available for INS. requestDispatcherRegistry.registerServerRequestDispatcher( insnd, id ) ; } }
Example #6
Source File: POAFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void init( ORB orb ) { this.orb = orb ; wrapper = POASystemException.get( orb, CORBALogDomains.OA_LIFECYCLE ) ; omgWrapper = OMGSystemException.get( orb, CORBALogDomains.OA_LIFECYCLE ) ; delegateImpl = new DelegateImpl( orb, this ) ; registerRootPOA() ; POACurrent poaCurrent = new POACurrent(orb); orb.getLocalResolver().register( ORBConstants.POA_CURRENT_NAME, ClosureFactory.makeConstant( poaCurrent ) ) ; }
Example #7
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 #8
Source File: PIHandlerImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public PIHandlerImpl( ORB orb, String[] args ) { this.orb = orb ; wrapper = InterceptorsSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; orbutilWrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; omgWrapper = OMGSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; arguments = args ; // Create codec factory: codecFactory = new CodecFactoryImpl( orb ); // Create new interceptor list: interceptorList = new InterceptorList( wrapper ); // Create a new PICurrent. current = new PICurrent( orb ); // Create new interceptor invoker, initially disabled: interceptorInvoker = new InterceptorInvoker( orb, interceptorList, current ); // Register the PI current and Codec factory objects orb.getLocalResolver().register( ORBConstants.PI_CURRENT_NAME, ClosureFactory.makeConstant( current ) ) ; orb.getLocalResolver().register( ORBConstants.CODEC_FACTORY_NAME, ClosureFactory.makeConstant( codecFactory ) ) ; }
Example #9
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 #10
Source File: ORBImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * If this operation is called with an id, <code>"Y"</code>, and an * object, <code>YY</code>, then a subsequent call to * <code>ORB.resolve_initial_references( "Y" )</code> will * return object <code>YY</code>. * * @param id The ID by which the initial reference will be known. * @param obj The initial reference itself. * @throws InvalidName if this operation is called with an empty string id * or this operation is called with an id that is already registered, * including the default names defined by OMG. * @throws BAD_PARAM if the obj parameter is null. */ public void register_initial_reference( String id, org.omg.CORBA.Object obj ) throws InvalidName { CorbaServerRequestDispatcher insnd ; synchronized (this) { checkShutdownState(); } if ((id == null) || (id.length() == 0)) throw new InvalidName() ; synchronized (this) { checkShutdownState(); } synchronized (resolverLock) { insnd = insNamingDelegate ; java.lang.Object obj2 = localResolver.resolve( id ) ; if (obj2 != null) throw new InvalidName(id + " already registered") ; localResolver.register( id, ClosureFactory.makeConstant( obj )) ; } synchronized (this) { if (StubAdapter.isStub(obj)) // Make all remote object references available for INS. requestDispatcherRegistry.registerServerRequestDispatcher( insnd, id ) ; } }
Example #11
Source File: POAFactory.java From hottub with GNU General Public License v2.0 | 5 votes |
public void init( ORB orb ) { this.orb = orb ; wrapper = POASystemException.get( orb, CORBALogDomains.OA_LIFECYCLE ) ; omgWrapper = OMGSystemException.get( orb, CORBALogDomains.OA_LIFECYCLE ) ; delegateImpl = new DelegateImpl( orb, this ) ; registerRootPOA() ; POACurrent poaCurrent = new POACurrent(orb); orb.getLocalResolver().register( ORBConstants.POA_CURRENT_NAME, ClosureFactory.makeConstant( poaCurrent ) ) ; }
Example #12
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 #13
Source File: PIHandlerImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public PIHandlerImpl( ORB orb, String[] args ) { this.orb = orb ; wrapper = InterceptorsSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; orbutilWrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; omgWrapper = OMGSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; arguments = args ; // Create codec factory: codecFactory = new CodecFactoryImpl( orb ); // Create new interceptor list: interceptorList = new InterceptorList( wrapper ); // Create a new PICurrent. current = new PICurrent( orb ); // Create new interceptor invoker, initially disabled: interceptorInvoker = new InterceptorInvoker( orb, interceptorList, current ); // Register the PI current and Codec factory objects orb.getLocalResolver().register( ORBConstants.PI_CURRENT_NAME, ClosureFactory.makeConstant( current ) ) ; orb.getLocalResolver().register( ORBConstants.CODEC_FACTORY_NAME, ClosureFactory.makeConstant( codecFactory ) ) ; }
Example #14
Source File: POAFactory.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void init( ORB orb ) { this.orb = orb ; wrapper = POASystemException.get( orb, CORBALogDomains.OA_LIFECYCLE ) ; omgWrapper = OMGSystemException.get( orb, CORBALogDomains.OA_LIFECYCLE ) ; delegateImpl = new DelegateImpl( orb, this ) ; registerRootPOA() ; POACurrent poaCurrent = new POACurrent(orb); orb.getLocalResolver().register( ORBConstants.POA_CURRENT_NAME, ClosureFactory.makeConstant( poaCurrent ) ) ; }
Example #15
Source File: ORBImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * If this operation is called with an id, <code>"Y"</code>, and an * object, <code>YY</code>, then a subsequent call to * <code>ORB.resolve_initial_references( "Y" )</code> will * return object <code>YY</code>. * * @param id The ID by which the initial reference will be known. * @param obj The initial reference itself. * @throws InvalidName if this operation is called with an empty string id * or this operation is called with an id that is already registered, * including the default names defined by OMG. * @throws BAD_PARAM if the obj parameter is null. */ public void register_initial_reference( String id, org.omg.CORBA.Object obj ) throws InvalidName { CorbaServerRequestDispatcher insnd ; synchronized (this) { checkShutdownState(); } if ((id == null) || (id.length() == 0)) throw new InvalidName() ; synchronized (this) { checkShutdownState(); } synchronized (resolverLock) { insnd = insNamingDelegate ; java.lang.Object obj2 = localResolver.resolve( id ) ; if (obj2 != null) throw new InvalidName(id + " already registered") ; localResolver.register( id, ClosureFactory.makeConstant( obj )) ; } synchronized (this) { if (StubAdapter.isStub(obj)) // Make all remote object references available for INS. requestDispatcherRegistry.registerServerRequestDispatcher( insnd, id ) ; } }
Example #16
Source File: POAFactory.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void init( ORB orb ) { this.orb = orb ; wrapper = POASystemException.get( orb, CORBALogDomains.OA_LIFECYCLE ) ; omgWrapper = OMGSystemException.get( orb, CORBALogDomains.OA_LIFECYCLE ) ; delegateImpl = new DelegateImpl( orb, this ) ; registerRootPOA() ; POACurrent poaCurrent = new POACurrent(orb); orb.getLocalResolver().register( ORBConstants.POA_CURRENT_NAME, ClosureFactory.makeConstant( poaCurrent ) ) ; }
Example #17
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 #18
Source File: PIHandlerImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public PIHandlerImpl( ORB orb, String[] args ) { this.orb = orb ; wrapper = InterceptorsSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; orbutilWrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; omgWrapper = OMGSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; arguments = args ; // Create codec factory: codecFactory = new CodecFactoryImpl( orb ); // Create new interceptor list: interceptorList = new InterceptorList( wrapper ); // Create a new PICurrent. current = new PICurrent( orb ); // Create new interceptor invoker, initially disabled: interceptorInvoker = new InterceptorInvoker( orb, interceptorList, current ); // Register the PI current and Codec factory objects orb.getLocalResolver().register( ORBConstants.PI_CURRENT_NAME, ClosureFactory.makeConstant( current ) ) ; orb.getLocalResolver().register( ORBConstants.CODEC_FACTORY_NAME, ClosureFactory.makeConstant( codecFactory ) ) ; }
Example #19
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 #20
Source File: ORBImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * If this operation is called with an id, <code>"Y"</code>, and an * object, <code>YY</code>, then a subsequent call to * <code>ORB.resolve_initial_references( "Y" )</code> will * return object <code>YY</code>. * * @param id The ID by which the initial reference will be known. * @param obj The initial reference itself. * @throws InvalidName if this operation is called with an empty string id * or this operation is called with an id that is already registered, * including the default names defined by OMG. * @throws BAD_PARAM if the obj parameter is null. */ public void register_initial_reference( String id, org.omg.CORBA.Object obj ) throws InvalidName { CorbaServerRequestDispatcher insnd ; synchronized (this) { checkShutdownState(); } if ((id == null) || (id.length() == 0)) throw new InvalidName() ; synchronized (this) { checkShutdownState(); } synchronized (resolverLock) { insnd = insNamingDelegate ; java.lang.Object obj2 = localResolver.resolve( id ) ; if (obj2 != null) throw new InvalidName(id + " already registered") ; localResolver.register( id, ClosureFactory.makeConstant( obj )) ; } synchronized (this) { if (StubAdapter.isStub(obj)) // Make all remote object references available for INS. requestDispatcherRegistry.registerServerRequestDispatcher( insnd, id ) ; } }
Example #21
Source File: POAFactory.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void init( ORB orb ) { this.orb = orb ; wrapper = POASystemException.get( orb, CORBALogDomains.OA_LIFECYCLE ) ; omgWrapper = OMGSystemException.get( orb, CORBALogDomains.OA_LIFECYCLE ) ; delegateImpl = new DelegateImpl( orb, this ) ; registerRootPOA() ; POACurrent poaCurrent = new POACurrent(orb); orb.getLocalResolver().register( ORBConstants.POA_CURRENT_NAME, ClosureFactory.makeConstant( poaCurrent ) ) ; }
Example #22
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 #23
Source File: PIHandlerImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public PIHandlerImpl( ORB orb, String[] args ) { this.orb = orb ; wrapper = InterceptorsSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; orbutilWrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; omgWrapper = OMGSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; arguments = args ; // Create codec factory: codecFactory = new CodecFactoryImpl( orb ); // Create new interceptor list: interceptorList = new InterceptorList( wrapper ); // Create a new PICurrent. current = new PICurrent( orb ); // Create new interceptor invoker, initially disabled: interceptorInvoker = new InterceptorInvoker( orb, interceptorList, current ); // Register the PI current and Codec factory objects orb.getLocalResolver().register( ORBConstants.PI_CURRENT_NAME, ClosureFactory.makeConstant( current ) ) ; orb.getLocalResolver().register( ORBConstants.CODEC_FACTORY_NAME, ClosureFactory.makeConstant( codecFactory ) ) ; }
Example #24
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 #25
Source File: ORBImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * If this operation is called with an id, <code>"Y"</code>, and an * object, <code>YY</code>, then a subsequent call to * <code>ORB.resolve_initial_references( "Y" )</code> will * return object <code>YY</code>. * * @param id The ID by which the initial reference will be known. * @param obj The initial reference itself. * @throws InvalidName if this operation is called with an empty string id * or this operation is called with an id that is already registered, * including the default names defined by OMG. * @throws BAD_PARAM if the obj parameter is null. */ public void register_initial_reference( String id, org.omg.CORBA.Object obj ) throws InvalidName { CorbaServerRequestDispatcher insnd ; synchronized (this) { checkShutdownState(); } if ((id == null) || (id.length() == 0)) throw new InvalidName() ; synchronized (this) { checkShutdownState(); } synchronized (resolverLock) { insnd = insNamingDelegate ; java.lang.Object obj2 = localResolver.resolve( id ) ; if (obj2 != null) throw new InvalidName(id + " already registered") ; localResolver.register( id, ClosureFactory.makeConstant( obj )) ; } synchronized (this) { if (StubAdapter.isStub(obj)) // Make all remote object references available for INS. requestDispatcherRegistry.registerServerRequestDispatcher( insnd, id ) ; } }
Example #26
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 #27
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 #28
Source File: PIHandlerImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public PIHandlerImpl( ORB orb, String[] args ) { this.orb = orb ; wrapper = InterceptorsSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; orbutilWrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; omgWrapper = OMGSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; arguments = args ; // Create codec factory: codecFactory = new CodecFactoryImpl( orb ); // Create new interceptor list: interceptorList = new InterceptorList( wrapper ); // Create a new PICurrent. current = new PICurrent( orb ); // Create new interceptor invoker, initially disabled: interceptorInvoker = new InterceptorInvoker( orb, interceptorList, current ); // Register the PI current and Codec factory objects orb.getLocalResolver().register( ORBConstants.PI_CURRENT_NAME, ClosureFactory.makeConstant( current ) ) ; orb.getLocalResolver().register( ORBConstants.CODEC_FACTORY_NAME, ClosureFactory.makeConstant( codecFactory ) ) ; }
Example #29
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 #30
Source File: ORBImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * If this operation is called with an id, <code>"Y"</code>, and an * object, <code>YY</code>, then a subsequent call to * <code>ORB.resolve_initial_references( "Y" )</code> will * return object <code>YY</code>. * * @param id The ID by which the initial reference will be known. * @param obj The initial reference itself. * @throws InvalidName if this operation is called with an empty string id * or this operation is called with an id that is already registered, * including the default names defined by OMG. * @throws BAD_PARAM if the obj parameter is null. */ public void register_initial_reference( String id, org.omg.CORBA.Object obj ) throws InvalidName { CorbaServerRequestDispatcher insnd ; synchronized (this) { checkShutdownState(); } if ((id == null) || (id.length() == 0)) throw new InvalidName() ; synchronized (this) { checkShutdownState(); } synchronized (resolverLock) { insnd = insNamingDelegate ; java.lang.Object obj2 = localResolver.resolve( id ) ; if (obj2 != null) throw new InvalidName(id + " already registered") ; localResolver.register( id, ClosureFactory.makeConstant( obj )) ; } synchronized (this) { if (StubAdapter.isStub(obj)) // Make all remote object references available for INS. requestDispatcherRegistry.registerServerRequestDispatcher( insnd, id ) ; } }