package test.interop.bidir;

import org.omg.PortableServer.POA;

/**
 * Generated from IDL interface "CallbackServer".
 *
 * @author JacORB IDL compiler V @project.version@
 * @version generated at 25-Feb-2014 13:44:20
 */

public class CallbackServerPOATie
	extends CallbackServerPOA
{
	private CallbackServerOperations _delegate;

	private POA _poa;
	public CallbackServerPOATie(CallbackServerOperations delegate)
	{
		_delegate = delegate;
	}
	public CallbackServerPOATie(CallbackServerOperations delegate, POA poa)
	{
		_delegate = delegate;
		_poa = poa;
	}
	public test.interop.bidir.CallbackServer _this()
	{
		org.omg.CORBA.Object __o = _this_object() ;
		test.interop.bidir.CallbackServer __r = test.interop.bidir.CallbackServerHelper.narrow(__o);
		return __r;
	}
	public test.interop.bidir.CallbackServer _this(org.omg.CORBA.ORB orb)
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		test.interop.bidir.CallbackServer __r = test.interop.bidir.CallbackServerHelper.narrow(__o);
		return __r;
	}
	public CallbackServerOperations _delegate()
	{
		return _delegate;
	}
	public void _delegate(CallbackServerOperations delegate)
	{
		_delegate = delegate;
	}
	public POA _default_POA()
	{
		if (_poa != null)
		{
			return _poa;
		}
		return super._default_POA();
	}
	public void callback_hello(test.interop.bidir.ClientCallback cc, java.lang.String message)
	{
_delegate.callback_hello(cc,message);
	}

}
