Java Code Examples for com.sun.corba.se.spi.ior.IORFactories#makeIORTemplateList()
The following examples show how to use
com.sun.corba.se.spi.ior.IORFactories#makeIORTemplateList() .
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: IORImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this( orb, typeId ) ; this.iortemps = IORFactories.makeIORTemplateList() ; this.iortemps.add( iortemp ) ; addTaggedProfiles( iortemp, id ) ; makeImmutable() ; }
Example 2
Source File: IORImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void initializeIORTemplateList() { // Maps ObjectKeyTemplate to IORTemplate Map oktempToIORTemplate = new HashMap() ; iortemps = IORFactories.makeIORTemplateList() ; Iterator iter = iterator() ; ObjectId oid = null ; // used to check that all profiles have the same oid. while (iter.hasNext()) { TaggedProfile prof = (TaggedProfile)(iter.next()) ; TaggedProfileTemplate ptemp = prof.getTaggedProfileTemplate() ; ObjectKeyTemplate oktemp = prof.getObjectKeyTemplate() ; // Check that all oids for all profiles are the same: if they are not, // throw exception. if (oid == null) oid = prof.getObjectId() ; else if (!oid.equals( prof.getObjectId() )) throw wrapper.badOidInIorTemplateList() ; // Find or create the IORTemplate for oktemp. IORTemplate iortemp = (IORTemplate)(oktempToIORTemplate.get( oktemp )) ; if (iortemp == null) { iortemp = IORFactories.makeIORTemplate( oktemp ) ; oktempToIORTemplate.put( oktemp, iortemp ) ; iortemps.add( iortemp ) ; } iortemp.add( ptemp ) ; } iortemps.makeImmutable() ; }
Example 3
Source File: IORImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this( orb, typeId ) ; this.iortemps = IORFactories.makeIORTemplateList() ; this.iortemps.add( iortemp ) ; addTaggedProfiles( iortemp, id ) ; makeImmutable() ; }
Example 4
Source File: ObjectReferenceFactoryImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** Read the data into a (presumably) empty ObjectReferenceFactoryImpl. * This sets the orb to the ORB of the InputStream. */ public void _read( InputStream is ) { org.omg.CORBA_2_3.portable.InputStream istr = (org.omg.CORBA_2_3.portable.InputStream)is ; iorTemplates = IORFactories.makeIORTemplateList( istr ) ; }
Example 5
Source File: IORImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this( orb, typeId ) ; this.iortemps = IORFactories.makeIORTemplateList() ; this.iortemps.add( iortemp ) ; addTaggedProfiles( iortemp, id ) ; makeImmutable() ; }
Example 6
Source File: IORImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this( orb, typeId ) ; this.iortemps = IORFactories.makeIORTemplateList() ; this.iortemps.add( iortemp ) ; addTaggedProfiles( iortemp, id ) ; makeImmutable() ; }
Example 7
Source File: IORImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this( orb, typeId ) ; this.iortemps = IORFactories.makeIORTemplateList() ; this.iortemps.add( iortemp ) ; addTaggedProfiles( iortemp, id ) ; makeImmutable() ; }
Example 8
Source File: ObjectReferenceTemplateImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public IORTemplateList getIORTemplateList() { IORTemplateList tl = IORFactories.makeIORTemplateList() ; tl.add( iorTemplate ) ; tl.makeImmutable() ; return tl ; }
Example 9
Source File: IORImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this( orb, typeId ) ; this.iortemps = IORFactories.makeIORTemplateList() ; this.iortemps.add( iortemp ) ; addTaggedProfiles( iortemp, id ) ; makeImmutable() ; }
Example 10
Source File: IORImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private void initializeIORTemplateList() { // Maps ObjectKeyTemplate to IORTemplate Map oktempToIORTemplate = new HashMap() ; iortemps = IORFactories.makeIORTemplateList() ; Iterator iter = iterator() ; ObjectId oid = null ; // used to check that all profiles have the same oid. while (iter.hasNext()) { TaggedProfile prof = (TaggedProfile)(iter.next()) ; TaggedProfileTemplate ptemp = prof.getTaggedProfileTemplate() ; ObjectKeyTemplate oktemp = prof.getObjectKeyTemplate() ; // Check that all oids for all profiles are the same: if they are not, // throw exception. if (oid == null) oid = prof.getObjectId() ; else if (!oid.equals( prof.getObjectId() )) throw wrapper.badOidInIorTemplateList() ; // Find or create the IORTemplate for oktemp. IORTemplate iortemp = (IORTemplate)(oktempToIORTemplate.get( oktemp )) ; if (iortemp == null) { iortemp = IORFactories.makeIORTemplate( oktemp ) ; oktempToIORTemplate.put( oktemp, iortemp ) ; iortemps.add( iortemp ) ; } iortemp.add( ptemp ) ; } iortemps.makeImmutable() ; }
Example 11
Source File: IORImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void initializeIORTemplateList() { // Maps ObjectKeyTemplate to IORTemplate Map oktempToIORTemplate = new HashMap() ; iortemps = IORFactories.makeIORTemplateList() ; Iterator iter = iterator() ; ObjectId oid = null ; // used to check that all profiles have the same oid. while (iter.hasNext()) { TaggedProfile prof = (TaggedProfile)(iter.next()) ; TaggedProfileTemplate ptemp = prof.getTaggedProfileTemplate() ; ObjectKeyTemplate oktemp = prof.getObjectKeyTemplate() ; // Check that all oids for all profiles are the same: if they are not, // throw exception. if (oid == null) oid = prof.getObjectId() ; else if (!oid.equals( prof.getObjectId() )) throw wrapper.badOidInIorTemplateList() ; // Find or create the IORTemplate for oktemp. IORTemplate iortemp = (IORTemplate)(oktempToIORTemplate.get( oktemp )) ; if (iortemp == null) { iortemp = IORFactories.makeIORTemplate( oktemp ) ; oktempToIORTemplate.put( oktemp, iortemp ) ; iortemps.add( iortemp ) ; } iortemp.add( ptemp ) ; } iortemps.makeImmutable() ; }
Example 12
Source File: ObjectReferenceTemplateImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public IORTemplateList getIORTemplateList() { IORTemplateList tl = IORFactories.makeIORTemplateList() ; tl.add( iorTemplate ) ; tl.makeImmutable() ; return tl ; }
Example 13
Source File: ObjectReferenceFactoryImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Read the data into a (presumably) empty ObjectReferenceFactoryImpl. * This sets the orb to the ORB of the InputStream. */ public void _read( InputStream is ) { org.omg.CORBA_2_3.portable.InputStream istr = (org.omg.CORBA_2_3.portable.InputStream)is ; iorTemplates = IORFactories.makeIORTemplateList( istr ) ; }
Example 14
Source File: IORImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
private void initializeIORTemplateList() { // Maps ObjectKeyTemplate to IORTemplate Map oktempToIORTemplate = new HashMap() ; iortemps = IORFactories.makeIORTemplateList() ; Iterator iter = iterator() ; ObjectId oid = null ; // used to check that all profiles have the same oid. while (iter.hasNext()) { TaggedProfile prof = (TaggedProfile)(iter.next()) ; TaggedProfileTemplate ptemp = prof.getTaggedProfileTemplate() ; ObjectKeyTemplate oktemp = prof.getObjectKeyTemplate() ; // Check that all oids for all profiles are the same: if they are not, // throw exception. if (oid == null) oid = prof.getObjectId() ; else if (!oid.equals( prof.getObjectId() )) throw wrapper.badOidInIorTemplateList() ; // Find or create the IORTemplate for oktemp. IORTemplate iortemp = (IORTemplate)(oktempToIORTemplate.get( oktemp )) ; if (iortemp == null) { iortemp = IORFactories.makeIORTemplate( oktemp ) ; oktempToIORTemplate.put( oktemp, iortemp ) ; iortemps.add( iortemp ) ; } iortemp.add( ptemp ) ; } iortemps.makeImmutable() ; }
Example 15
Source File: IORImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this( orb, typeId ) ; this.iortemps = IORFactories.makeIORTemplateList() ; this.iortemps.add( iortemp ) ; addTaggedProfiles( iortemp, id ) ; makeImmutable() ; }
Example 16
Source File: ObjectReferenceFactoryImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** Read the data into a (presumably) empty ObjectReferenceFactoryImpl. * This sets the orb to the ORB of the InputStream. */ public void _read( InputStream is ) { org.omg.CORBA_2_3.portable.InputStream istr = (org.omg.CORBA_2_3.portable.InputStream)is ; iorTemplates = IORFactories.makeIORTemplateList( istr ) ; }
Example 17
Source File: ObjectReferenceTemplateImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public IORTemplateList getIORTemplateList() { IORTemplateList tl = IORFactories.makeIORTemplateList() ; tl.add( iorTemplate ) ; tl.makeImmutable() ; return tl ; }
Example 18
Source File: IORImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private void initializeIORTemplateList() { // Maps ObjectKeyTemplate to IORTemplate Map oktempToIORTemplate = new HashMap() ; iortemps = IORFactories.makeIORTemplateList() ; Iterator iter = iterator() ; ObjectId oid = null ; // used to check that all profiles have the same oid. while (iter.hasNext()) { TaggedProfile prof = (TaggedProfile)(iter.next()) ; TaggedProfileTemplate ptemp = prof.getTaggedProfileTemplate() ; ObjectKeyTemplate oktemp = prof.getObjectKeyTemplate() ; // Check that all oids for all profiles are the same: if they are not, // throw exception. if (oid == null) oid = prof.getObjectId() ; else if (!oid.equals( prof.getObjectId() )) throw wrapper.badOidInIorTemplateList() ; // Find or create the IORTemplate for oktemp. IORTemplate iortemp = (IORTemplate)(oktempToIORTemplate.get( oktemp )) ; if (iortemp == null) { iortemp = IORFactories.makeIORTemplate( oktemp ) ; oktempToIORTemplate.put( oktemp, iortemp ) ; iortemps.add( iortemp ) ; } iortemp.add( ptemp ) ; } iortemps.makeImmutable() ; }
Example 19
Source File: IORImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** Construct an IOR from an IORTemplate by applying the same * object id to each TaggedProfileTemplate in the IORTemplate. */ public IORImpl( ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this( orb, typeId ) ; this.iortemps = IORFactories.makeIORTemplateList() ; this.iortemps.add( iortemp ) ; addTaggedProfiles( iortemp, id ) ; makeImmutable() ; }
Example 20
Source File: ObjectReferenceTemplateImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public IORTemplateList getIORTemplateList() { IORTemplateList tl = IORFactories.makeIORTemplateList() ; tl.add( iorTemplate ) ; tl.makeImmutable() ; return tl ; }