⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _texteventconsumerstub.java

📁 直接放在eclipse环境下
💻 JAVA
字号:
package org.objectweb.ccm.demo3;

/**
 *	Generated from IDL definition of interface "TextEventConsumer"
 *	@author JacORB IDL compiler 
 */
public class _TextEventConsumerStub
	extends org.omg.CORBA.portable.ObjectImpl
	implements org.objectweb.ccm.demo3.TextEventConsumer
{
	private String[] ids = {"IDL:ccm.objectweb.org/demo3/TextEventConsumer:1.0","IDL:omg.org/Components/EventConsumerBase:1.0"};
	public String[] _ids()
	{
		return ids;
	}
	public final static java.lang.Class _opsClass = org.objectweb.ccm.demo3.TextEventConsumerOperations.class;
	public void push_event(org.omg.Components.EventBase evt) throws org.omg.Components.BadEventType	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "push_event", true);
				((org.omg.CORBA_2_3.portable.OutputStream)_os).write_value (evt );
				_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/BadEventType:1.0"))
				{
					throw org.omg.Components.BadEventTypeHelper.read(_ax.getInputStream());
				}
				else 					throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "push_event", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			TextEventConsumerOperations _localServant = (TextEventConsumerOperations)_so.servant;
			try
			{
			_localServant.push_event(evt);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return;
		}
		}
	}
	public void push_TextEvent(org.objectweb.ccm.demo3.TextEvent the_textevent)	{
		while(true)
		{
		if(! this._is_local())
		{
			org.omg.CORBA.portable.InputStream _is = null;
			try
			{
				org.omg.CORBA.portable.OutputStream _os = _request( "push_TextEvent", true);
				((org.omg.CORBA_2_3.portable.OutputStream)_os).write_value (the_textevent );
				_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( "push_TextEvent", _opsClass );
			if( _so == null )
				throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
			TextEventConsumerOperations _localServant = (TextEventConsumerOperations)_so.servant;
			try
			{
			_localServant.push_TextEvent(the_textevent);
			}
			finally
			{
				_servant_postinvoke(_so);
			}
			return;
		}
		}
	}
}

⌨️ 快捷键说明

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