[$(NDDSHOME)/example/JAVA/corba/MessageReceiverPOATie.java]
import org.omg.PortableServer.POA;
public class MessageReceiverPOATie
extends MessageReceiverPOA
{
private MessageReceiverOperations _delegate;
private POA _poa;
public MessageReceiverPOATie(MessageReceiverOperations delegate)
{
_delegate = delegate;
}
public MessageReceiverPOATie(MessageReceiverOperations delegate, POA poa)
{
_delegate = delegate;
_poa = poa;
}
public MessageReceiver _this()
{
org.omg.CORBA.Object __o = _this_object() ;
MessageReceiver __r = MessageReceiverHelper.narrow(__o);
return __r;
}
public MessageReceiver _this(org.omg.CORBA.ORB orb)
{
org.omg.CORBA.Object __o = _this_object(orb) ;
MessageReceiver __r = MessageReceiverHelper.narrow(__o);
return __r;
}
public MessageReceiverOperations _delegate()
{
return _delegate;
}
public void _delegate(MessageReceiverOperations delegate)
{
_delegate = delegate;
}
public POA _default_POA()
{
if (_poa != null)
{
return _poa;
}
return super._default_POA();
}
public void sendMessage(Message msg)
{
_delegate.sendMessage(msg);
}
}