_servicesstub.java

来自「直接放在eclipse环境下」· Java 代码 · 共 67 行

JAVA
67
字号
package org.objectweb.ccm.demo3;

/**
 *	Generated from IDL definition of interface "Services"
 *	@author JacORB IDL compiler 
 */
public class _ServicesStub
	extends org.omg.CORBA.portable.ObjectImpl
	implements org.objectweb.ccm.demo3.Services
{
	private String[] ids = {"IDL:ccm.objectweb.org/demo3/Services:1.0"};
	public String[] _ids()
	{
		return ids;
	}
	public final static java.lang.Class _opsClass = org.objectweb.ccm.demo3.ServicesOperations.class;
	public void display(java.lang.String text)	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "display", true);
				_os.write_string(text);
				_is = _invoke(_os);
				return;
			}
			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( "display", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			ServicesOperations _localServant = (ServicesOperations)_so.servant;
			try
			{
			_localServant.display(text);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return;
		}
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?