Java Code Examples for org.omg.PortableServer.POAManager
The following examples show how to use
org.omg.PortableServer.POAManager. These examples are extracted from open source projects.
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: jdk1.8-source-analysis Source File: StubAdapter.java License: Apache License 2.0 | 6 votes |
/** Use implicit activation to get an object reference for the servant. */ public static org.omg.CORBA.Object activateServant( Servant servant ) { POA poa = servant._default_POA() ; org.omg.CORBA.Object ref = null ; try { ref = poa.servant_to_reference( servant ) ; } catch (ServantNotActive sna) { throw wrapper.getDelegateServantNotActive( sna ) ; } catch (WrongPolicy wp) { throw wrapper.getDelegateWrongPolicy( wp ) ; } // Make sure that the POAManager is activated if no other // POAManager state management has taken place. POAManager mgr = poa.the_POAManager() ; if (mgr instanceof POAManagerImpl) { POAManagerImpl mgrImpl = (POAManagerImpl)mgr ; mgrImpl.implicitActivation() ; } return ref ; }
Example 2
Source Project: jdk1.8-source-analysis Source File: POAFactory.java License: Apache License 2.0 | 6 votes |
public void shutdown( boolean waitForCompletion ) { // It is important to copy the list of POAManagers first because // pm.deactivate removes itself from poaManagers! Iterator managers = null ; synchronized (this) { isShuttingDown = true ; managers = (new HashSet(poaManagers)).iterator(); } while ( managers.hasNext() ) { try { ((POAManager)managers.next()).deactivate(true, waitForCompletion); } catch ( org.omg.PortableServer.POAManagerPackage.AdapterInactive e ) {} } }
Example 3
Source Project: TencentKona-8 Source File: StubAdapter.java License: GNU General Public License v2.0 | 6 votes |
/** Use implicit activation to get an object reference for the servant. */ public static org.omg.CORBA.Object activateServant( Servant servant ) { POA poa = servant._default_POA() ; org.omg.CORBA.Object ref = null ; try { ref = poa.servant_to_reference( servant ) ; } catch (ServantNotActive sna) { throw wrapper.getDelegateServantNotActive( sna ) ; } catch (WrongPolicy wp) { throw wrapper.getDelegateWrongPolicy( wp ) ; } // Make sure that the POAManager is activated if no other // POAManager state management has taken place. POAManager mgr = poa.the_POAManager() ; if (mgr instanceof POAManagerImpl) { POAManagerImpl mgrImpl = (POAManagerImpl)mgr ; mgrImpl.implicitActivation() ; } return ref ; }
Example 4
Source Project: TencentKona-8 Source File: POAFactory.java License: GNU General Public License v2.0 | 6 votes |
public void shutdown( boolean waitForCompletion ) { // It is important to copy the list of POAManagers first because // pm.deactivate removes itself from poaManagers! Iterator managers = null ; synchronized (this) { isShuttingDown = true ; managers = (new HashSet(poaManagers)).iterator(); } while ( managers.hasNext() ) { try { ((POAManager)managers.next()).deactivate(true, waitForCompletion); } catch ( org.omg.PortableServer.POAManagerPackage.AdapterInactive e ) {} } }
Example 5
Source Project: jdk8u60 Source File: StubAdapter.java License: GNU General Public License v2.0 | 6 votes |
/** Use implicit activation to get an object reference for the servant. */ public static org.omg.CORBA.Object activateServant( Servant servant ) { POA poa = servant._default_POA() ; org.omg.CORBA.Object ref = null ; try { ref = poa.servant_to_reference( servant ) ; } catch (ServantNotActive sna) { throw wrapper.getDelegateServantNotActive( sna ) ; } catch (WrongPolicy wp) { throw wrapper.getDelegateWrongPolicy( wp ) ; } // Make sure that the POAManager is activated if no other // POAManager state management has taken place. POAManager mgr = poa.the_POAManager() ; if (mgr instanceof POAManagerImpl) { POAManagerImpl mgrImpl = (POAManagerImpl)mgr ; mgrImpl.implicitActivation() ; } return ref ; }
Example 6
Source Project: jdk8u60 Source File: POAFactory.java License: GNU General Public License v2.0 | 6 votes |
public void shutdown( boolean waitForCompletion ) { // It is important to copy the list of POAManagers first because // pm.deactivate removes itself from poaManagers! Iterator managers = null ; synchronized (this) { isShuttingDown = true ; managers = (new HashSet(poaManagers)).iterator(); } while ( managers.hasNext() ) { try { ((POAManager)managers.next()).deactivate(true, waitForCompletion); } catch ( org.omg.PortableServer.POAManagerPackage.AdapterInactive e ) {} } }
Example 7
Source Project: JDKSourceCode1.8 Source File: StubAdapter.java License: MIT License | 6 votes |
/** Use implicit activation to get an object reference for the servant. */ public static org.omg.CORBA.Object activateServant( Servant servant ) { POA poa = servant._default_POA() ; org.omg.CORBA.Object ref = null ; try { ref = poa.servant_to_reference( servant ) ; } catch (ServantNotActive sna) { throw wrapper.getDelegateServantNotActive( sna ) ; } catch (WrongPolicy wp) { throw wrapper.getDelegateWrongPolicy( wp ) ; } // Make sure that the POAManager is activated if no other // POAManager state management has taken place. POAManager mgr = poa.the_POAManager() ; if (mgr instanceof POAManagerImpl) { POAManagerImpl mgrImpl = (POAManagerImpl)mgr ; mgrImpl.implicitActivation() ; } return ref ; }
Example 8
Source Project: JDKSourceCode1.8 Source File: POAFactory.java License: MIT License | 6 votes |
public void shutdown( boolean waitForCompletion ) { // It is important to copy the list of POAManagers first because // pm.deactivate removes itself from poaManagers! Iterator managers = null ; synchronized (this) { isShuttingDown = true ; managers = (new HashSet(poaManagers)).iterator(); } while ( managers.hasNext() ) { try { ((POAManager)managers.next()).deactivate(true, waitForCompletion); } catch ( org.omg.PortableServer.POAManagerPackage.AdapterInactive e ) {} } }
Example 9
Source Project: openjdk-jdk8u Source File: StubAdapter.java License: GNU General Public License v2.0 | 6 votes |
/** Use implicit activation to get an object reference for the servant. */ public static org.omg.CORBA.Object activateServant( Servant servant ) { POA poa = servant._default_POA() ; org.omg.CORBA.Object ref = null ; try { ref = poa.servant_to_reference( servant ) ; } catch (ServantNotActive sna) { throw wrapper.getDelegateServantNotActive( sna ) ; } catch (WrongPolicy wp) { throw wrapper.getDelegateWrongPolicy( wp ) ; } // Make sure that the POAManager is activated if no other // POAManager state management has taken place. POAManager mgr = poa.the_POAManager() ; if (mgr instanceof POAManagerImpl) { POAManagerImpl mgrImpl = (POAManagerImpl)mgr ; mgrImpl.implicitActivation() ; } return ref ; }
Example 10
Source Project: openjdk-jdk8u Source File: POAFactory.java License: GNU General Public License v2.0 | 6 votes |
public void shutdown( boolean waitForCompletion ) { // It is important to copy the list of POAManagers first because // pm.deactivate removes itself from poaManagers! Iterator managers = null ; synchronized (this) { isShuttingDown = true ; managers = (new HashSet(poaManagers)).iterator(); } while ( managers.hasNext() ) { try { ((POAManager)managers.next()).deactivate(true, waitForCompletion); } catch ( org.omg.PortableServer.POAManagerPackage.AdapterInactive e ) {} } }
Example 11
Source Project: openjdk-jdk8u-backup Source File: StubAdapter.java License: GNU General Public License v2.0 | 6 votes |
/** Use implicit activation to get an object reference for the servant. */ public static org.omg.CORBA.Object activateServant( Servant servant ) { POA poa = servant._default_POA() ; org.omg.CORBA.Object ref = null ; try { ref = poa.servant_to_reference( servant ) ; } catch (ServantNotActive sna) { throw wrapper.getDelegateServantNotActive( sna ) ; } catch (WrongPolicy wp) { throw wrapper.getDelegateWrongPolicy( wp ) ; } // Make sure that the POAManager is activated if no other // POAManager state management has taken place. POAManager mgr = poa.the_POAManager() ; if (mgr instanceof POAManagerImpl) { POAManagerImpl mgrImpl = (POAManagerImpl)mgr ; mgrImpl.implicitActivation() ; } return ref ; }
Example 12
Source Project: openjdk-jdk8u-backup Source File: POAFactory.java License: GNU General Public License v2.0 | 6 votes |
public void shutdown( boolean waitForCompletion ) { // It is important to copy the list of POAManagers first because // pm.deactivate removes itself from poaManagers! Iterator managers = null ; synchronized (this) { isShuttingDown = true ; managers = (new HashSet(poaManagers)).iterator(); } while ( managers.hasNext() ) { try { ((POAManager)managers.next()).deactivate(true, waitForCompletion); } catch ( org.omg.PortableServer.POAManagerPackage.AdapterInactive e ) {} } }
Example 13
Source Project: openjdk-jdk9 Source File: StubAdapter.java License: GNU General Public License v2.0 | 6 votes |
/** Use implicit activation to get an object reference for the servant. */ public static org.omg.CORBA.Object activateServant( Servant servant ) { POA poa = servant._default_POA() ; org.omg.CORBA.Object ref = null ; try { ref = poa.servant_to_reference( servant ) ; } catch (ServantNotActive sna) { throw wrapper.getDelegateServantNotActive( sna ) ; } catch (WrongPolicy wp) { throw wrapper.getDelegateWrongPolicy( wp ) ; } // Make sure that the POAManager is activated if no other // POAManager state management has taken place. POAManager mgr = poa.the_POAManager() ; if (mgr instanceof POAManagerImpl) { POAManagerImpl mgrImpl = (POAManagerImpl)mgr ; mgrImpl.implicitActivation() ; } return ref ; }
Example 14
Source Project: openjdk-jdk9 Source File: POAFactory.java License: GNU General Public License v2.0 | 6 votes |
public void shutdown( boolean waitForCompletion ) { // It is important to copy the list of POAManagers first because // pm.deactivate removes itself from poaManagers! Iterator managers = null ; synchronized (this) { isShuttingDown = true ; managers = (new HashSet(poaManagers)).iterator(); } while ( managers.hasNext() ) { try { ((POAManager)managers.next()).deactivate(true, waitForCompletion); } catch ( org.omg.PortableServer.POAManagerPackage.AdapterInactive e ) {} } }
Example 15
Source Project: hottub Source File: StubAdapter.java License: GNU General Public License v2.0 | 6 votes |
/** Use implicit activation to get an object reference for the servant. */ public static org.omg.CORBA.Object activateServant( Servant servant ) { POA poa = servant._default_POA() ; org.omg.CORBA.Object ref = null ; try { ref = poa.servant_to_reference( servant ) ; } catch (ServantNotActive sna) { throw wrapper.getDelegateServantNotActive( sna ) ; } catch (WrongPolicy wp) { throw wrapper.getDelegateWrongPolicy( wp ) ; } // Make sure that the POAManager is activated if no other // POAManager state management has taken place. POAManager mgr = poa.the_POAManager() ; if (mgr instanceof POAManagerImpl) { POAManagerImpl mgrImpl = (POAManagerImpl)mgr ; mgrImpl.implicitActivation() ; } return ref ; }
Example 16
Source Project: hottub Source File: POAFactory.java License: GNU General Public License v2.0 | 6 votes |
public void shutdown( boolean waitForCompletion ) { // It is important to copy the list of POAManagers first because // pm.deactivate removes itself from poaManagers! Iterator managers = null ; synchronized (this) { isShuttingDown = true ; managers = (new HashSet(poaManagers)).iterator(); } while ( managers.hasNext() ) { try { ((POAManager)managers.next()).deactivate(true, waitForCompletion); } catch ( org.omg.PortableServer.POAManagerPackage.AdapterInactive e ) {} } }
Example 17
Source Project: openjdk-8-source Source File: StubAdapter.java License: GNU General Public License v2.0 | 6 votes |
/** Use implicit activation to get an object reference for the servant. */ public static org.omg.CORBA.Object activateServant( Servant servant ) { POA poa = servant._default_POA() ; org.omg.CORBA.Object ref = null ; try { ref = poa.servant_to_reference( servant ) ; } catch (ServantNotActive sna) { throw wrapper.getDelegateServantNotActive( sna ) ; } catch (WrongPolicy wp) { throw wrapper.getDelegateWrongPolicy( wp ) ; } // Make sure that the POAManager is activated if no other // POAManager state management has taken place. POAManager mgr = poa.the_POAManager() ; if (mgr instanceof POAManagerImpl) { POAManagerImpl mgrImpl = (POAManagerImpl)mgr ; mgrImpl.implicitActivation() ; } return ref ; }
Example 18
Source Project: openjdk-8-source Source File: POAFactory.java License: GNU General Public License v2.0 | 6 votes |
public void shutdown( boolean waitForCompletion ) { // It is important to copy the list of POAManagers first because // pm.deactivate removes itself from poaManagers! Iterator managers = null ; synchronized (this) { isShuttingDown = true ; managers = (new HashSet(poaManagers)).iterator(); } while ( managers.hasNext() ) { try { ((POAManager)managers.next()).deactivate(true, waitForCompletion); } catch ( org.omg.PortableServer.POAManagerPackage.AdapterInactive e ) {} } }
Example 19
Source Project: openjdk-8 Source File: StubAdapter.java License: GNU General Public License v2.0 | 6 votes |
/** Use implicit activation to get an object reference for the servant. */ public static org.omg.CORBA.Object activateServant( Servant servant ) { POA poa = servant._default_POA() ; org.omg.CORBA.Object ref = null ; try { ref = poa.servant_to_reference( servant ) ; } catch (ServantNotActive sna) { throw wrapper.getDelegateServantNotActive( sna ) ; } catch (WrongPolicy wp) { throw wrapper.getDelegateWrongPolicy( wp ) ; } // Make sure that the POAManager is activated if no other // POAManager state management has taken place. POAManager mgr = poa.the_POAManager() ; if (mgr instanceof POAManagerImpl) { POAManagerImpl mgrImpl = (POAManagerImpl)mgr ; mgrImpl.implicitActivation() ; } return ref ; }
Example 20
Source Project: openjdk-8 Source File: POAFactory.java License: GNU General Public License v2.0 | 6 votes |
public void shutdown( boolean waitForCompletion ) { // It is important to copy the list of POAManagers first because // pm.deactivate removes itself from poaManagers! Iterator managers = null ; synchronized (this) { isShuttingDown = true ; managers = (new HashSet(poaManagers)).iterator(); } while ( managers.hasNext() ) { try { ((POAManager)managers.next()).deactivate(true, waitForCompletion); } catch ( org.omg.PortableServer.POAManagerPackage.AdapterInactive e ) {} } }
Example 21
Source Project: jdk1.8-source-analysis Source File: POAImpl.java License: Apache License 2.0 | 5 votes |
/** * <code>the_POAManager</code> * <b>Section 3.3.8.8</b> */ public POAManager the_POAManager() { try { lock() ; return manager; } finally { unlock() ; } }
Example 22
Source Project: TencentKona-8 Source File: POAImpl.java License: GNU General Public License v2.0 | 5 votes |
/** * <code>the_POAManager</code> * <b>Section 3.3.8.8</b> */ public POAManager the_POAManager() { try { lock() ; return manager; } finally { unlock() ; } }
Example 23
Source Project: jdk8u60 Source File: POAImpl.java License: GNU General Public License v2.0 | 5 votes |
/** * <code>the_POAManager</code> * <b>Section 3.3.8.8</b> */ public POAManager the_POAManager() { try { lock() ; return manager; } finally { unlock() ; } }
Example 24
Source Project: JDKSourceCode1.8 Source File: POAImpl.java License: MIT License | 5 votes |
/** * <code>the_POAManager</code> * <b>Section 3.3.8.8</b> */ public POAManager the_POAManager() { try { lock() ; return manager; } finally { unlock() ; } }
Example 25
Source Project: openjdk-jdk8u Source File: POAImpl.java License: GNU General Public License v2.0 | 5 votes |
/** * <code>the_POAManager</code> * <b>Section 3.3.8.8</b> */ public POAManager the_POAManager() { try { lock() ; return manager; } finally { unlock() ; } }
Example 26
Source Project: openjdk-jdk8u-backup Source File: POAImpl.java License: GNU General Public License v2.0 | 5 votes |
/** * <code>the_POAManager</code> * <b>Section 3.3.8.8</b> */ public POAManager the_POAManager() { try { lock() ; return manager; } finally { unlock() ; } }
Example 27
Source Project: openjdk-jdk9 Source File: POAImpl.java License: GNU General Public License v2.0 | 5 votes |
/** * <code>the_POAManager</code> * <b>Section 3.3.8.8</b> */ public POAManager the_POAManager() { try { lock() ; return manager; } finally { unlock() ; } }
Example 28
Source Project: hottub Source File: POAImpl.java License: GNU General Public License v2.0 | 5 votes |
/** * <code>the_POAManager</code> * <b>Section 3.3.8.8</b> */ public POAManager the_POAManager() { try { lock() ; return manager; } finally { unlock() ; } }
Example 29
Source Project: openjdk-8-source Source File: POAImpl.java License: GNU General Public License v2.0 | 5 votes |
/** * <code>the_POAManager</code> * <b>Section 3.3.8.8</b> */ public POAManager the_POAManager() { try { lock() ; return manager; } finally { unlock() ; } }
Example 30
Source Project: openjdk-8 Source File: POAImpl.java License: GNU General Public License v2.0 | 5 votes |
/** * <code>the_POAManager</code> * <b>Section 3.3.8.8</b> */ public POAManager the_POAManager() { try { lock() ; return manager; } finally { unlock() ; } }