📄 texteventconsumerpoa.java
字号:
package org.objectweb.ccm.demo3;
/**
* Generated from IDL definition of interface "TextEventConsumer"
* @author JacORB IDL compiler
*/
public abstract class TextEventConsumerPOA extends org.omg.PortableServer.Servant
implements org.omg.CORBA.portable.InvokeHandler, org.objectweb.ccm.demo3.TextEventConsumerOperations
{
static private final java.util.Hashtable m_opsHash = new java.util.Hashtable();
static
{
m_opsHash.put ( "push_event", new java.lang.Integer(0));
m_opsHash.put ( "push_TextEvent", new java.lang.Integer(1));
}
private String[] ids = {"IDL:ccm.objectweb.org/demo3/TextEventConsumer:1.0","IDL:omg.org/Components/EventConsumerBase:1.0"};
public org.objectweb.ccm.demo3.TextEventConsumer _this()
{
return org.objectweb.ccm.demo3.TextEventConsumerHelper.narrow(_this_object());
}
public org.objectweb.ccm.demo3.TextEventConsumer _this(org.omg.CORBA.ORB orb)
{
return org.objectweb.ccm.demo3.TextEventConsumerHelper.narrow(_this_object(orb));
}
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
throws org.omg.CORBA.SystemException
{
org.omg.CORBA.portable.OutputStream _out = null;
// do something
// quick lookup of operation
java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
if ( null == opsIndex )
throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
switch ( opsIndex.intValue() )
{
case 0: // push_event
{
try
{
org.omg.Components.EventBase _arg0=(org.omg.Components.EventBase)((org.omg.CORBA_2_3.portable.InputStream)_input).read_value ("IDL:omg.org/Components/EventBase:1.0");
_out = handler.createReply();
push_event(_arg0);
}
catch(org.omg.Components.BadEventType _ex0)
{
_out = handler.createExceptionReply();
org.omg.Components.BadEventTypeHelper.write(_out, _ex0);
}
break;
}
case 1: // push_TextEvent
{
org.objectweb.ccm.demo3.TextEvent _arg0=(org.objectweb.ccm.demo3.TextEvent)((org.omg.CORBA_2_3.portable.InputStream)_input).read_value ("IDL:ccm.objectweb.org/demo3/TextEvent:1.0");
_out = handler.createReply();
push_TextEvent(_arg0);
break;
}
}
return _out;
}
public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
{
return ids;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -