org.omg.PortableServer.POAPackage.WrongAdapter Java Examples
The following examples show how to use
org.omg.PortableServer.POAPackage.WrongAdapter.
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: POAImpl.java From openjdk-jdk8u-backup with 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 #2
Source File: POAImpl.java From openjdk-8 with 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 #3
Source File: POAImpl.java From openjdk-8 with 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 #4
Source File: POAImpl.java From openjdk-8 with 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 File: POAImpl.java From openjdk-8-source with 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 #6
Source File: POAImpl.java From openjdk-8-source with 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 #7
Source File: POAImpl.java From openjdk-8-source with 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 File: POAImpl.java From hottub with 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 #9
Source File: POAImpl.java From hottub with 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 #10
Source File: POAImpl.java From hottub with 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 #11
Source File: POAImpl.java From openjdk-jdk9 with 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 #12
Source File: POAImpl.java From openjdk-jdk9 with 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 #13
Source File: POAImpl.java From openjdk-jdk9 with 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 File: POAImpl.java From openjdk-jdk8u-backup with 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 #15
Source File: POAImpl.java From openjdk-jdk8u-backup with 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 #16
Source File: POAImpl.java From jdk1.8-source-analysis with 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 #17
Source File: POAImpl.java From openjdk-jdk8u with 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 #18
Source File: POAImpl.java From openjdk-jdk8u with 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 #19
Source File: POAImpl.java From openjdk-jdk8u with 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 File: POAImpl.java From JDKSourceCode1.8 with 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 #21
Source File: POAImpl.java From JDKSourceCode1.8 with 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 #22
Source File: POAImpl.java From JDKSourceCode1.8 with 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 #23
Source File: POAImpl.java From jdk8u60 with 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 #24
Source File: POAImpl.java From jdk8u60 with 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 #25
Source File: POAImpl.java From jdk8u60 with 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 File: POAImpl.java From TencentKona-8 with 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 #27
Source File: POAImpl.java From TencentKona-8 with 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 #28
Source File: POAImpl.java From TencentKona-8 with 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 File: POAImpl.java From jdk1.8-source-analysis with 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 #30
Source File: POAImpl.java From jdk1.8-source-analysis with 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() ; } }