Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jacorb.demo.sas;


Generated from IDL interface "SASDemo".

Author(s):
JacORB IDL compiler V 3.6
Version:
generated at 16-Feb-2015 23:02:10
 
public abstract class SASDemoPOA
	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
	static
	{
		.put ( "printSAS", Integer.valueOf(0));
		.put ( "shutdown", Integer.valueOf(1));
	}
	private String[] ids = {"IDL:org/jacorb/demo/sas/SASDemo:1.0"};
	{
		org.jacorb.demo.sas.SASDemo __r = org.jacorb.demo.sas.SASDemoHelper.narrow(__o);
		return __r;
	}
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		org.jacorb.demo.sas.SASDemo __r = org.jacorb.demo.sas.SASDemoHelper.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: // printSAS
			{
				_out = handler.createReply();
				break;
			}
			case 1: // shutdown
			{
				_out = handler.createReply();
				break;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X