📄 _clienthomeimplicitstub.java
字号:
package org.objectweb.ccm.demo3;
/**
* Generated from IDL definition of interface "ClientHomeImplicit"
* @author JacORB IDL compiler
*/
public class _ClientHomeImplicitStub
extends org.omg.CORBA.portable.ObjectImpl
implements org.objectweb.ccm.demo3.ClientHomeImplicit
{
private String[] ids = {"IDL:ccm.objectweb.org/demo3/ClientHomeImplicit:1.0","IDL:omg.org/Components/KeylessCCMHome:1.0"};
public String[] _ids()
{
return ids;
}
public final static java.lang.Class _opsClass = org.objectweb.ccm.demo3.ClientHomeImplicitOperations.class;
public org.omg.Components.CCMObject create_component() throws org.omg.Components.CreateFailure {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "create_component", true);
_is = _invoke(_os);
org.omg.Components.CCMObject _result = org.omg.Components.CCMObjectHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
if( _id.equals("IDL:omg.org/Components/CreateFailure:1.0"))
{
throw org.omg.Components.CreateFailureHelper.read(_ax.getInputStream());
}
else throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "create_component", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ClientHomeImplicitOperations _localServant = (ClientHomeImplicitOperations)_so.servant;
org.omg.Components.CCMObject _result; try
{
_result = _localServant.create_component();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public org.objectweb.ccm.demo3.Client create() throws org.omg.Components.CreateFailure {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "create", true);
_is = _invoke(_os);
org.objectweb.ccm.demo3.Client _result = org.objectweb.ccm.demo3.ClientHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
if( _id.equals("IDL:omg.org/Components/CreateFailure:1.0"))
{
throw org.omg.Components.CreateFailureHelper.read(_ax.getInputStream());
}
else throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "create", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ClientHomeImplicitOperations _localServant = (ClientHomeImplicitOperations)_so.servant;
org.objectweb.ccm.demo3.Client _result; try
{
_result = _localServant.create();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -