Java Code Examples for com.sun.corba.se.spi.ior.IOR#stringify()
The following examples show how to use
com.sun.corba.se.spi.ior.IOR#stringify() .
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: ORBImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 2
Source File: ORBImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 3
Source File: ORBImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 4
Source File: ORBImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 5
Source File: ORBImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 6
Source File: ORBImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 7
Source File: ORBImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 8
Source File: ORBImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 9
Source File: ORBImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 10
Source File: ORBImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }