
com.addc.naming.seshat._ObjectBindingFactoryStub Maven / Gradle / Ivy
package com.addc.naming.seshat;
/**
* Generated from IDL interface "ObjectBindingFactory".
*
* @author JacORB IDL compiler V 3.9
* @version generated at Aug 5, 2019 2:33:38 PM
*/
public class _ObjectBindingFactoryStub
extends org.omg.CORBA.portable.ObjectImpl
implements com.addc.naming.seshat.ObjectBindingFactory
{
/** Serial version UID. */
private static final long serialVersionUID = 1L;
private String[] ids = {"IDL:seshat/ObjectBindingFactory:1.0"};
public String[] _ids()
{
return ids;
}
public final static java.lang.Class _opsClass = com.addc.naming.seshat.ObjectBindingFactoryOperations.class;
public com.addc.naming.seshat.ObjectBinding createObjectBinding()
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "createObjectBinding", true);
_is = _invoke(_os);
com.addc.naming.seshat.ObjectBinding _result = com.addc.naming.seshat.ObjectBindingHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx )
{
continue;
}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
try
{
_ax.getInputStream().close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
if (_os != null)
{
try
{
_os.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "createObjectBinding", _opsClass );
if( _so == null )
continue;
ObjectBindingFactoryOperations _localServant = (ObjectBindingFactoryOperations)_so.servant;
com.addc.naming.seshat.ObjectBinding _result;
try
{
_result = _localServant.createObjectBinding();
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
return _result;
}
catch (RuntimeException re)
{
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re);
throw re;
}
catch (java.lang.Error err)
{
if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt)
((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err);
throw err;
}
finally
{
_servant_postinvoke(_so);
}
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy