com.sun.corba.se.spi.servicecontext.ServiceContextData Java Examples
The following examples show how to use
com.sun.corba.se.spi.servicecontext.ServiceContextData.
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: ServiceContextRegistry.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
public ServiceContextData findServiceContextData( int scId ) { if (ORB.ORBInitDebug) dprint( "Searching registry for service context id " + scId ) ; Enumeration enumeration = scCollection.elements() ; while (enumeration.hasMoreElements()) { ServiceContextData scd = (ServiceContextData)(enumeration.nextElement()) ; if (scd.getId() == scId) { if (ORB.ORBInitDebug) dprint( "Service context data found: " + scd ) ; return scd ; } } if (ORB.ORBInitDebug) dprint( "Service context data not found" ) ; return null ; }
Example #2
Source File: ServiceContextRegistry.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public ServiceContextData findServiceContextData( int scId ) { if (ORB.ORBInitDebug) dprint( "Searching registry for service context id " + scId ) ; Enumeration enumeration = scCollection.elements() ; while (enumeration.hasMoreElements()) { ServiceContextData scd = (ServiceContextData)(enumeration.nextElement()) ; if (scd.getId() == scId) { if (ORB.ORBInitDebug) dprint( "Service context data found: " + scd ) ; return scd ; } } if (ORB.ORBInitDebug) dprint( "Service context data not found" ) ; return null ; }
Example #3
Source File: ServiceContextRegistry.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public ServiceContextData findServiceContextData( int scId ) { if (ORB.ORBInitDebug) dprint( "Searching registry for service context id " + scId ) ; Enumeration enumeration = scCollection.elements() ; while (enumeration.hasMoreElements()) { ServiceContextData scd = (ServiceContextData)(enumeration.nextElement()) ; if (scd.getId() == scId) { if (ORB.ORBInitDebug) dprint( "Service context data found: " + scd ) ; return scd ; } } if (ORB.ORBInitDebug) dprint( "Service context data not found" ) ; return null ; }
Example #4
Source File: ServiceContextRegistry.java From hottub with GNU General Public License v2.0 | 6 votes |
public ServiceContextData findServiceContextData( int scId ) { if (ORB.ORBInitDebug) dprint( "Searching registry for service context id " + scId ) ; Enumeration enumeration = scCollection.elements() ; while (enumeration.hasMoreElements()) { ServiceContextData scd = (ServiceContextData)(enumeration.nextElement()) ; if (scd.getId() == scId) { if (ORB.ORBInitDebug) dprint( "Service context data found: " + scd ) ; return scd ; } } if (ORB.ORBInitDebug) dprint( "Service context data not found" ) ; return null ; }
Example #5
Source File: ServiceContextRegistry.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public ServiceContextData findServiceContextData( int scId ) { if (ORB.ORBInitDebug) dprint( "Searching registry for service context id " + scId ) ; Enumeration enumeration = scCollection.elements() ; while (enumeration.hasMoreElements()) { ServiceContextData scd = (ServiceContextData)(enumeration.nextElement()) ; if (scd.getId() == scId) { if (ORB.ORBInitDebug) dprint( "Service context data found: " + scd ) ; return scd ; } } if (ORB.ORBInitDebug) dprint( "Service context data not found" ) ; return null ; }
Example #6
Source File: ServiceContextRegistry.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public ServiceContextData findServiceContextData( int scId ) { if (ORB.ORBInitDebug) dprint( "Searching registry for service context id " + scId ) ; Enumeration enumeration = scCollection.elements() ; while (enumeration.hasMoreElements()) { ServiceContextData scd = (ServiceContextData)(enumeration.nextElement()) ; if (scd.getId() == scId) { if (ORB.ORBInitDebug) dprint( "Service context data found: " + scd ) ; return scd ; } } if (ORB.ORBInitDebug) dprint( "Service context data not found" ) ; return null ; }
Example #7
Source File: ServiceContextRegistry.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public ServiceContextData findServiceContextData( int scId ) { if (ORB.ORBInitDebug) dprint( "Searching registry for service context id " + scId ) ; Enumeration enumeration = scCollection.elements() ; while (enumeration.hasMoreElements()) { ServiceContextData scd = (ServiceContextData)(enumeration.nextElement()) ; if (scd.getId() == scId) { if (ORB.ORBInitDebug) dprint( "Service context data found: " + scd ) ; return scd ; } } if (ORB.ORBInitDebug) dprint( "Service context data not found" ) ; return null ; }
Example #8
Source File: ServiceContextRegistry.java From JDKSourceCode1.8 with MIT License | 6 votes |
public ServiceContextData findServiceContextData( int scId ) { if (ORB.ORBInitDebug) dprint( "Searching registry for service context id " + scId ) ; Enumeration enumeration = scCollection.elements() ; while (enumeration.hasMoreElements()) { ServiceContextData scd = (ServiceContextData)(enumeration.nextElement()) ; if (scd.getId() == scId) { if (ORB.ORBInitDebug) dprint( "Service context data found: " + scd ) ; return scd ; } } if (ORB.ORBInitDebug) dprint( "Service context data not found" ) ; return null ; }
Example #9
Source File: ServiceContextRegistry.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public ServiceContextData findServiceContextData( int scId ) { if (ORB.ORBInitDebug) dprint( "Searching registry for service context id " + scId ) ; Enumeration enumeration = scCollection.elements() ; while (enumeration.hasMoreElements()) { ServiceContextData scd = (ServiceContextData)(enumeration.nextElement()) ; if (scd.getId() == scId) { if (ORB.ORBInitDebug) dprint( "Service context data found: " + scd ) ; return scd ; } } if (ORB.ORBInitDebug) dprint( "Service context data not found" ) ; return null ; }
Example #10
Source File: ServiceContextRegistry.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public ServiceContextData findServiceContextData( int scId ) { if (ORB.ORBInitDebug) dprint( "Searching registry for service context id " + scId ) ; Enumeration enumeration = scCollection.elements() ; while (enumeration.hasMoreElements()) { ServiceContextData scd = (ServiceContextData)(enumeration.nextElement()) ; if (scd.getId() == scId) { if (ORB.ORBInitDebug) dprint( "Service context data found: " + scd ) ; return scd ; } } if (ORB.ORBInitDebug) dprint( "Service context data not found" ) ; return null ; }
Example #11
Source File: ServiceContextRegistry.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** Register the ServiceContext class so that it will be recognized * by the read method. * Class cls must have the following properties: * <ul> * <li>It must derive from com.sun.corba.se.spi.servicecontext.ServiceContext.</li> * <li>It must have a public static final int SERVICE_CONTEXT_ID * member.</li> * <li>It must implement a constructor that takes a * org.omg.CORBA_2_3.portable.InputStream argument.</li> * </ul> */ public void register( Class cls ) { if (ORB.ORBInitDebug) dprint( "Registering service context class " + cls ) ; ServiceContextData scd = new ServiceContextData( cls ) ; if (findServiceContextData(scd.getId()) == null) scCollection.addElement( scd ) ; else throw new BAD_PARAM( "Tried to register duplicate service context" ) ; }
Example #12
Source File: ServiceContextRegistry.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** Register the ServiceContext class so that it will be recognized * by the read method. * Class cls must have the following properties: * <ul> * <li>It must derive from com.sun.corba.se.spi.servicecontext.ServiceContext.</li> * <li>It must have a public static final int SERVICE_CONTEXT_ID * member.</li> * <li>It must implement a constructor that takes a * org.omg.CORBA_2_3.portable.InputStream argument.</li> * </ul> */ public void register( Class cls ) { if (ORB.ORBInitDebug) dprint( "Registering service context class " + cls ) ; ServiceContextData scd = new ServiceContextData( cls ) ; if (findServiceContextData(scd.getId()) == null) scCollection.addElement( scd ) ; else throw new BAD_PARAM( "Tried to register duplicate service context" ) ; }
Example #13
Source File: ServiceContextRegistry.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** Register the ServiceContext class so that it will be recognized * by the read method. * Class cls must have the following properties: * <ul> * <li>It must derive from com.sun.corba.se.spi.servicecontext.ServiceContext.</li> * <li>It must have a public static final int SERVICE_CONTEXT_ID * member.</li> * <li>It must implement a constructor that takes a * org.omg.CORBA_2_3.portable.InputStream argument.</li> * </ul> */ public void register( Class cls ) { if (ORB.ORBInitDebug) dprint( "Registering service context class " + cls ) ; ServiceContextData scd = new ServiceContextData( cls ) ; if (findServiceContextData(scd.getId()) == null) scCollection.addElement( scd ) ; else throw new BAD_PARAM( "Tried to register duplicate service context" ) ; }
Example #14
Source File: ServiceContextRegistry.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Register the ServiceContext class so that it will be recognized * by the read method. * Class cls must have the following properties: * <ul> * <li>It must derive from com.sun.corba.se.spi.servicecontext.ServiceContext.</li> * <li>It must have a public static final int SERVICE_CONTEXT_ID * member.</li> * <li>It must implement a constructor that takes a * org.omg.CORBA_2_3.portable.InputStream argument.</li> * </ul> */ public void register( Class cls ) { if (ORB.ORBInitDebug) dprint( "Registering service context class " + cls ) ; ServiceContextData scd = new ServiceContextData( cls ) ; if (findServiceContextData(scd.getId()) == null) scCollection.addElement( scd ) ; else throw new BAD_PARAM( "Tried to register duplicate service context" ) ; }
Example #15
Source File: ServiceContextRegistry.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** Register the ServiceContext class so that it will be recognized * by the read method. * Class cls must have the following properties: * <ul> * <li>It must derive from com.sun.corba.se.spi.servicecontext.ServiceContext.</li> * <li>It must have a public static final int SERVICE_CONTEXT_ID * member.</li> * <li>It must implement a constructor that takes a * org.omg.CORBA_2_3.portable.InputStream argument.</li> * </ul> */ public void register( Class cls ) { if (ORB.ORBInitDebug) dprint( "Registering service context class " + cls ) ; ServiceContextData scd = new ServiceContextData( cls ) ; if (findServiceContextData(scd.getId()) == null) scCollection.addElement( scd ) ; else throw new BAD_PARAM( "Tried to register duplicate service context" ) ; }
Example #16
Source File: ServiceContextRegistry.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Register the ServiceContext class so that it will be recognized * by the read method. * Class cls must have the following properties: * <ul> * <li>It must derive from com.sun.corba.se.spi.servicecontext.ServiceContext.</li> * <li>It must have a public static final int SERVICE_CONTEXT_ID * member.</li> * <li>It must implement a constructor that takes a * org.omg.CORBA_2_3.portable.InputStream argument.</li> * </ul> */ public void register( Class cls ) { if (ORB.ORBInitDebug) dprint( "Registering service context class " + cls ) ; ServiceContextData scd = new ServiceContextData( cls ) ; if (findServiceContextData(scd.getId()) == null) scCollection.addElement( scd ) ; else throw new BAD_PARAM( "Tried to register duplicate service context" ) ; }
Example #17
Source File: ServiceContextRegistry.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Register the ServiceContext class so that it will be recognized * by the read method. * Class cls must have the following properties: * <ul> * <li>It must derive from com.sun.corba.se.spi.servicecontext.ServiceContext.</li> * <li>It must have a public static final int SERVICE_CONTEXT_ID * member.</li> * <li>It must implement a constructor that takes a * org.omg.CORBA_2_3.portable.InputStream argument.</li> * </ul> */ public void register( Class cls ) { if (ORB.ORBInitDebug) dprint( "Registering service context class " + cls ) ; ServiceContextData scd = new ServiceContextData( cls ) ; if (findServiceContextData(scd.getId()) == null) scCollection.addElement( scd ) ; else throw new BAD_PARAM( "Tried to register duplicate service context" ) ; }
Example #18
Source File: ServiceContextRegistry.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** Register the ServiceContext class so that it will be recognized * by the read method. * Class cls must have the following properties: * <ul> * <li>It must derive from com.sun.corba.se.spi.servicecontext.ServiceContext.</li> * <li>It must have a public static final int SERVICE_CONTEXT_ID * member.</li> * <li>It must implement a constructor that takes a * org.omg.CORBA_2_3.portable.InputStream argument.</li> * </ul> */ public void register( Class cls ) { if (ORB.ORBInitDebug) dprint( "Registering service context class " + cls ) ; ServiceContextData scd = new ServiceContextData( cls ) ; if (findServiceContextData(scd.getId()) == null) scCollection.addElement( scd ) ; else throw new BAD_PARAM( "Tried to register duplicate service context" ) ; }
Example #19
Source File: ServiceContextRegistry.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Register the ServiceContext class so that it will be recognized * by the read method. * Class cls must have the following properties: * <ul> * <li>It must derive from com.sun.corba.se.spi.servicecontext.ServiceContext.</li> * <li>It must have a public static final int SERVICE_CONTEXT_ID * member.</li> * <li>It must implement a constructor that takes a * org.omg.CORBA_2_3.portable.InputStream argument.</li> * </ul> */ public void register( Class cls ) { if (ORB.ORBInitDebug) dprint( "Registering service context class " + cls ) ; ServiceContextData scd = new ServiceContextData( cls ) ; if (findServiceContextData(scd.getId()) == null) scCollection.addElement( scd ) ; else throw new BAD_PARAM( "Tried to register duplicate service context" ) ; }
Example #20
Source File: ServiceContextRegistry.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** Register the ServiceContext class so that it will be recognized * by the read method. * Class cls must have the following properties: * <ul> * <li>It must derive from com.sun.corba.se.spi.servicecontext.ServiceContext.</li> * <li>It must have a public static final int SERVICE_CONTEXT_ID * member.</li> * <li>It must implement a constructor that takes a * org.omg.CORBA_2_3.portable.InputStream argument.</li> * </ul> */ public void register( Class cls ) { if (ORB.ORBInitDebug) dprint( "Registering service context class " + cls ) ; ServiceContextData scd = new ServiceContextData( cls ) ; if (findServiceContextData(scd.getId()) == null) scCollection.addElement( scd ) ; else throw new BAD_PARAM( "Tried to register duplicate service context" ) ; }