Java Code Examples for org.omg.PortableServer.POAPackage.WrongAdapter
The following examples show how to use
org.omg.PortableServer.POAPackage.WrongAdapter. 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: POAImpl.java License: Apache License 2.0 | 6 votes |
private byte[] internalReferenceToId( org.omg.CORBA.Object reference ) throws WrongAdapter { IOR ior = ORBUtility.getIOR( reference ) ; IORTemplateList thisTemplate = ior.getIORTemplates() ; ObjectReferenceFactory orf = getCurrentFactory() ; IORTemplateList poaTemplate = IORFactories.getIORTemplateList( orf ) ; if (!poaTemplate.isEquivalent( thisTemplate )) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. // If ior was created in this POA, the same ID was used for // every profile through the profile templates in the currentFactory, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 2
Source Project: jdk1.8-source-analysis Source File: POAImpl.java License: Apache License 2.0 | 6 votes |
/** * <code>reference_to_servant</code> * <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this ) ; } if ( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } // reference_to_id should throw WrongAdapter // if the objref was not created by this POA byte [] id = internalReferenceToId(reference); return mediator.idToServant( id ) ; } finally { unlock() ; } }
Example 3
Source Project: jdk1.8-source-analysis Source File: POAImpl.java License: Apache License 2.0 | 6 votes |
/** * <code>reference_to_id</code> * <b>3.3.8.22</b> */ public byte[] reference_to_id(org.omg.CORBA.Object reference) throws WrongAdapter, WrongPolicy { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_id(reference=" + reference + ") on poa " + this ) ; } if( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } return internalReferenceToId( reference ) ; } finally { unlock() ; } }
Example 4
Source Project: TencentKona-8 Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
private byte[] internalReferenceToId( org.omg.CORBA.Object reference ) throws WrongAdapter { IOR ior = ORBUtility.getIOR( reference ) ; IORTemplateList thisTemplate = ior.getIORTemplates() ; ObjectReferenceFactory orf = getCurrentFactory() ; IORTemplateList poaTemplate = IORFactories.getIORTemplateList( orf ) ; if (!poaTemplate.isEquivalent( thisTemplate )) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. // If ior was created in this POA, the same ID was used for // every profile through the profile templates in the currentFactory, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 5
Source Project: TencentKona-8 Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_servant</code> * <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this ) ; } if ( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } // reference_to_id should throw WrongAdapter // if the objref was not created by this POA byte [] id = internalReferenceToId(reference); return mediator.idToServant( id ) ; } finally { unlock() ; } }
Example 6
Source Project: TencentKona-8 Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_id</code> * <b>3.3.8.22</b> */ public byte[] reference_to_id(org.omg.CORBA.Object reference) throws WrongAdapter, WrongPolicy { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_id(reference=" + reference + ") on poa " + this ) ; } if( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } return internalReferenceToId( reference ) ; } finally { unlock() ; } }
Example 7
Source Project: jdk8u60 Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
private byte[] internalReferenceToId( org.omg.CORBA.Object reference ) throws WrongAdapter { IOR ior = ORBUtility.getIOR( reference ) ; IORTemplateList thisTemplate = ior.getIORTemplates() ; ObjectReferenceFactory orf = getCurrentFactory() ; IORTemplateList poaTemplate = IORFactories.getIORTemplateList( orf ) ; if (!poaTemplate.isEquivalent( thisTemplate )) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. // If ior was created in this POA, the same ID was used for // every profile through the profile templates in the currentFactory, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 8
Source Project: jdk8u60 Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_servant</code> * <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this ) ; } if ( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } // reference_to_id should throw WrongAdapter // if the objref was not created by this POA byte [] id = internalReferenceToId(reference); return mediator.idToServant( id ) ; } finally { unlock() ; } }
Example 9
Source Project: jdk8u60 Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_id</code> * <b>3.3.8.22</b> */ public byte[] reference_to_id(org.omg.CORBA.Object reference) throws WrongAdapter, WrongPolicy { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_id(reference=" + reference + ") on poa " + this ) ; } if( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } return internalReferenceToId( reference ) ; } finally { unlock() ; } }
Example 10
Source Project: JDKSourceCode1.8 Source File: POAImpl.java License: MIT License | 6 votes |
private byte[] internalReferenceToId( org.omg.CORBA.Object reference ) throws WrongAdapter { IOR ior = ORBUtility.getIOR( reference ) ; IORTemplateList thisTemplate = ior.getIORTemplates() ; ObjectReferenceFactory orf = getCurrentFactory() ; IORTemplateList poaTemplate = IORFactories.getIORTemplateList( orf ) ; if (!poaTemplate.isEquivalent( thisTemplate )) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. // If ior was created in this POA, the same ID was used for // every profile through the profile templates in the currentFactory, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 11
Source Project: JDKSourceCode1.8 Source File: POAImpl.java License: MIT License | 6 votes |
/** * <code>reference_to_servant</code> * <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this ) ; } if ( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } // reference_to_id should throw WrongAdapter // if the objref was not created by this POA byte [] id = internalReferenceToId(reference); return mediator.idToServant( id ) ; } finally { unlock() ; } }
Example 12
Source Project: JDKSourceCode1.8 Source File: POAImpl.java License: MIT License | 6 votes |
/** * <code>reference_to_id</code> * <b>3.3.8.22</b> */ public byte[] reference_to_id(org.omg.CORBA.Object reference) throws WrongAdapter, WrongPolicy { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_id(reference=" + reference + ") on poa " + this ) ; } if( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } return internalReferenceToId( reference ) ; } finally { unlock() ; } }
Example 13
Source Project: openjdk-jdk8u Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
private byte[] internalReferenceToId( org.omg.CORBA.Object reference ) throws WrongAdapter { IOR ior = ORBUtility.getIOR( reference ) ; IORTemplateList thisTemplate = ior.getIORTemplates() ; ObjectReferenceFactory orf = getCurrentFactory() ; IORTemplateList poaTemplate = IORFactories.getIORTemplateList( orf ) ; if (!poaTemplate.isEquivalent( thisTemplate )) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. // If ior was created in this POA, the same ID was used for // every profile through the profile templates in the currentFactory, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 14
Source Project: openjdk-jdk8u Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_servant</code> * <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this ) ; } if ( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } // reference_to_id should throw WrongAdapter // if the objref was not created by this POA byte [] id = internalReferenceToId(reference); return mediator.idToServant( id ) ; } finally { unlock() ; } }
Example 15
Source Project: openjdk-jdk8u Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_id</code> * <b>3.3.8.22</b> */ public byte[] reference_to_id(org.omg.CORBA.Object reference) throws WrongAdapter, WrongPolicy { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_id(reference=" + reference + ") on poa " + this ) ; } if( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } return internalReferenceToId( reference ) ; } finally { unlock() ; } }
Example 16
Source Project: openjdk-jdk8u-backup Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
private byte[] internalReferenceToId( org.omg.CORBA.Object reference ) throws WrongAdapter { IOR ior = ORBUtility.getIOR( reference ) ; IORTemplateList thisTemplate = ior.getIORTemplates() ; ObjectReferenceFactory orf = getCurrentFactory() ; IORTemplateList poaTemplate = IORFactories.getIORTemplateList( orf ) ; if (!poaTemplate.isEquivalent( thisTemplate )) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. // If ior was created in this POA, the same ID was used for // every profile through the profile templates in the currentFactory, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 17
Source Project: openjdk-jdk8u-backup Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_servant</code> * <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this ) ; } if ( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } // reference_to_id should throw WrongAdapter // if the objref was not created by this POA byte [] id = internalReferenceToId(reference); return mediator.idToServant( id ) ; } finally { unlock() ; } }
Example 18
Source Project: openjdk-jdk8u-backup Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_id</code> * <b>3.3.8.22</b> */ public byte[] reference_to_id(org.omg.CORBA.Object reference) throws WrongAdapter, WrongPolicy { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_id(reference=" + reference + ") on poa " + this ) ; } if( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } return internalReferenceToId( reference ) ; } finally { unlock() ; } }
Example 19
Source Project: openjdk-jdk9 Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
private byte[] internalReferenceToId( org.omg.CORBA.Object reference ) throws WrongAdapter { IOR ior = ORBUtility.getIOR( reference ) ; IORTemplateList thisTemplate = ior.getIORTemplates() ; ObjectReferenceFactory orf = getCurrentFactory() ; IORTemplateList poaTemplate = IORFactories.getIORTemplateList( orf ) ; if (!poaTemplate.isEquivalent( thisTemplate )) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. // If ior was created in this POA, the same ID was used for // every profile through the profile templates in the currentFactory, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 20
Source Project: openjdk-jdk9 Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_servant</code> * <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this ) ; } if ( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } // reference_to_id should throw WrongAdapter // if the objref was not created by this POA byte [] id = internalReferenceToId(reference); return mediator.idToServant( id ) ; } finally { unlock() ; } }
Example 21
Source Project: openjdk-jdk9 Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_id</code> * <b>3.3.8.22</b> */ public byte[] reference_to_id(org.omg.CORBA.Object reference) throws WrongAdapter, WrongPolicy { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_id(reference=" + reference + ") on poa " + this ) ; } if( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } return internalReferenceToId( reference ) ; } finally { unlock() ; } }
Example 22
Source Project: hottub Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
private byte[] internalReferenceToId( org.omg.CORBA.Object reference ) throws WrongAdapter { IOR ior = ORBUtility.getIOR( reference ) ; IORTemplateList thisTemplate = ior.getIORTemplates() ; ObjectReferenceFactory orf = getCurrentFactory() ; IORTemplateList poaTemplate = IORFactories.getIORTemplateList( orf ) ; if (!poaTemplate.isEquivalent( thisTemplate )) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. // If ior was created in this POA, the same ID was used for // every profile through the profile templates in the currentFactory, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 23
Source Project: hottub Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_servant</code> * <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this ) ; } if ( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } // reference_to_id should throw WrongAdapter // if the objref was not created by this POA byte [] id = internalReferenceToId(reference); return mediator.idToServant( id ) ; } finally { unlock() ; } }
Example 24
Source Project: hottub Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_id</code> * <b>3.3.8.22</b> */ public byte[] reference_to_id(org.omg.CORBA.Object reference) throws WrongAdapter, WrongPolicy { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_id(reference=" + reference + ") on poa " + this ) ; } if( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } return internalReferenceToId( reference ) ; } finally { unlock() ; } }
Example 25
Source Project: openjdk-8-source Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
private byte[] internalReferenceToId( org.omg.CORBA.Object reference ) throws WrongAdapter { IOR ior = ORBUtility.getIOR( reference ) ; IORTemplateList thisTemplate = ior.getIORTemplates() ; ObjectReferenceFactory orf = getCurrentFactory() ; IORTemplateList poaTemplate = IORFactories.getIORTemplateList( orf ) ; if (!poaTemplate.isEquivalent( thisTemplate )) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. // If ior was created in this POA, the same ID was used for // every profile through the profile templates in the currentFactory, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 26
Source Project: openjdk-8-source Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_servant</code> * <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this ) ; } if ( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } // reference_to_id should throw WrongAdapter // if the objref was not created by this POA byte [] id = internalReferenceToId(reference); return mediator.idToServant( id ) ; } finally { unlock() ; } }
Example 27
Source Project: openjdk-8-source Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_id</code> * <b>3.3.8.22</b> */ public byte[] reference_to_id(org.omg.CORBA.Object reference) throws WrongAdapter, WrongPolicy { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_id(reference=" + reference + ") on poa " + this ) ; } if( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } return internalReferenceToId( reference ) ; } finally { unlock() ; } }
Example 28
Source Project: openjdk-8 Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
private byte[] internalReferenceToId( org.omg.CORBA.Object reference ) throws WrongAdapter { IOR ior = ORBUtility.getIOR( reference ) ; IORTemplateList thisTemplate = ior.getIORTemplates() ; ObjectReferenceFactory orf = getCurrentFactory() ; IORTemplateList poaTemplate = IORFactories.getIORTemplateList( orf ) ; if (!poaTemplate.isEquivalent( thisTemplate )) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. // If ior was created in this POA, the same ID was used for // every profile through the profile templates in the currentFactory, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 29
Source Project: openjdk-8 Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_servant</code> * <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this ) ; } if ( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } // reference_to_id should throw WrongAdapter // if the objref was not created by this POA byte [] id = internalReferenceToId(reference); return mediator.idToServant( id ) ; } finally { unlock() ; } }
Example 30
Source Project: openjdk-8 Source File: POAImpl.java License: GNU General Public License v2.0 | 6 votes |
/** * <code>reference_to_id</code> * <b>3.3.8.22</b> */ public byte[] reference_to_id(org.omg.CORBA.Object reference) throws WrongAdapter, WrongPolicy { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling reference_to_id(reference=" + reference + ") on poa " + this ) ; } if( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } return internalReferenceToId( reference ) ; } finally { unlock() ; } }