📄 _serverhomeexplicitstub.java
字号:
package org.objectweb.ccm.demo3;
/**
* Generated from IDL definition of interface "ServerHomeExplicit"
* @author JacORB IDL compiler
*/
public class _ServerHomeExplicitStub
extends org.omg.CORBA.portable.ObjectImpl
implements org.objectweb.ccm.demo3.ServerHomeExplicit
{
private String[] ids = {"IDL:ccm.objectweb.org/demo3/ServerHomeExplicit:1.0","IDL:omg.org/Components/CCMHome:1.0"};
public String[] _ids()
{
return ids;
}
public final static java.lang.Class _opsClass = org.objectweb.ccm.demo3.ServerHomeExplicitOperations.class;
public void remove_component(org.omg.Components.CCMObject comp) throws org.omg.Components.RemoveFailure {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "remove_component", true);
org.omg.Components.CCMObjectHelper.write(_os,comp);
_is = _invoke(_os);
return;
}
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/RemoveFailure:1.0"))
{
throw org.omg.Components.RemoveFailureHelper.read(_ax.getInputStream());
}
else throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "remove_component", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ServerHomeExplicitOperations _localServant = (ServerHomeExplicitOperations)_so.servant;
try
{
_localServant.remove_component(comp);
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
public org.omg.Components.CCMObject[] get_components() {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "get_components", true);
_is = _invoke(_os);
org.omg.Components.CCMObject[] _result = org.omg.Components.CCMObjectsHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "get_components", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ServerHomeExplicitOperations _localServant = (ServerHomeExplicitOperations)_so.servant;
org.omg.Components.CCMObject[] _result; try
{
_result = _localServant.get_components();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public org.omg.CORBA.IRObject get_component_def() {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "get_component_def", true);
_is = _invoke(_os);
org.omg.CORBA.IRObject _result = org.omg.CORBA.IRObjectHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "get_component_def", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ServerHomeExplicitOperations _localServant = (ServerHomeExplicitOperations)_so.servant;
org.omg.CORBA.IRObject _result; try
{
_result = _localServant.get_component_def();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public org.omg.CORBA.IRObject get_home_def() {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "get_home_def", true);
_is = _invoke(_os);
org.omg.CORBA.IRObject _result = org.omg.CORBA.IRObjectHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "get_home_def", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ServerHomeExplicitOperations _localServant = (ServerHomeExplicitOperations)_so.servant;
org.omg.CORBA.IRObject _result; try
{
_result = _localServant.get_home_def();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public void remove_home() throws org.omg.Components.RemoveFailure {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "remove_home", true);
_is = _invoke(_os);
return;
}
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/RemoveFailure:1.0"))
{
throw org.omg.Components.RemoveFailureHelper.read(_ax.getInputStream());
}
else throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "remove_home", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ServerHomeExplicitOperations _localServant = (ServerHomeExplicitOperations)_so.servant;
try
{
_localServant.remove_home();
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
public org.omg.Components.Deployment.Container get_container() {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "get_container", true);
_is = _invoke(_os);
org.omg.Components.Deployment.Container _result = org.omg.Components.Deployment.ContainerHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "get_container", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ServerHomeExplicitOperations _localServant = (ServerHomeExplicitOperations)_so.servant;
org.omg.Components.Deployment.Container _result; try
{
_result = _localServant.get_container();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -