Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.jacorb.events;


Generated from IDL interface "JacORBEventChannel".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:26
  
 
 public abstract class JacORBEventChannelPOA
 {
 	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
 	static
 	{
 		.put ( "obtain_pull_supplier", Integer.valueOf(0));
 		.put ( "obtain_push_consumer", Integer.valueOf(1));
 		.put ( "obtain_pull_consumer", Integer.valueOf(2));
 		.put ( "for_consumers", Integer.valueOf(3));
 		.put ( "obtain_push_supplier", Integer.valueOf(4));
 		.put ( "destroy", Integer.valueOf(5));
 		.put ( "for_suppliers", Integer.valueOf(6));
 	}
 	private String[] ids = {"IDL:org/jacorb/events/JacORBEventChannel:1.0","IDL:omg.org/CosEventChannelAdmin/SupplierAdmin:1.0","IDL:omg.org/CosEventChannelAdmin/ConsumerAdmin:1.0","IDL:omg.org/CosEventChannelAdmin/EventChannel:1.0"};
 	{
 		org.omg.CORBA.Object __o = _this_object() ;
 		org.jacorb.events.JacORBEventChannel __r = org.jacorb.events.JacORBEventChannelHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.Object __o = _this_object(orb) ;
 		org.jacorb.events.JacORBEventChannel __r = org.jacorb.events.JacORBEventChannelHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.portable.OutputStream _out = null;
 		// do something
 		// quick lookup of operation
 		java.lang.Integer opsIndex = (java.lang.Integer).get ( method );
 		if ( null == opsIndex )
 			throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
 		switch ( opsIndex.intValue() )
 		{
 			case 0: // obtain_pull_supplier
 			{
 				_out = handler.createReply();
 				org.omg.CosEventChannelAdmin.ProxyPullSupplierHelper.write(_out,obtain_pull_supplier());
 				break;
 			}
 			case 1: // obtain_push_consumer
 			{
 				_out = handler.createReply();
 				org.omg.CosEventChannelAdmin.ProxyPushConsumerHelper.write(_out,obtain_push_consumer());
 				break;
 			}
 			case 2: // obtain_pull_consumer
 			{
 				_out = handler.createReply();
 				org.omg.CosEventChannelAdmin.ProxyPullConsumerHelper.write(_out,obtain_pull_consumer());
 				break;
 			}
 			case 3: // for_consumers
 			{
 				_out = handler.createReply();
 				org.omg.CosEventChannelAdmin.ConsumerAdminHelper.write(_out,for_consumers());
 				break;
 			}
 			case 4: // obtain_push_supplier
 			{
 				_out = handler.createReply();
 				org.omg.CosEventChannelAdmin.ProxyPushSupplierHelper.write(_out,obtain_push_supplier());
 				break;
 			}
 			case 5: // destroy
 			{
 				_out = handler.createReply();
 				destroy();
 				break;
 			}
 			case 6: // for_suppliers
 			{
 				_out = handler.createReply();
 				org.omg.CosEventChannelAdmin.SupplierAdminHelper.write(_out,for_suppliers());
 				break;
 			}
 		}
 		return _out;
 	}
 
 	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
 	{
 		return ;
 	}
New to GrepCode? Check out our FAQ X