Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.CosEventChannelAdmin;


Generated from IDL interface "EventChannel".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:15
 
public abstract class EventChannelPOA
	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
	static
	{
		.put ( "for_consumers", Integer.valueOf(0));
		.put ( "destroy", Integer.valueOf(1));
		.put ( "for_suppliers", Integer.valueOf(2));
	}
	private String[] ids = {"IDL:omg.org/CosEventChannelAdmin/EventChannel:1.0"};
	{
		org.omg.CosEventChannelAdmin.EventChannel __r = org.omg.CosEventChannelAdmin.EventChannelHelper.narrow(__o);
		return __r;
	}
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		org.omg.CosEventChannelAdmin.EventChannel __r = org.omg.CosEventChannelAdmin.EventChannelHelper.narrow(__o);
		return __r;
	}
	{
		// 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: // for_consumers
			{
				_out = handler.createReply();
				org.omg.CosEventChannelAdmin.ConsumerAdminHelper.write(_out,for_consumers());
				break;
			}
			case 1: // destroy
			{
				_out = handler.createReply();
				break;
			}
			case 2: // 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