1 package org.jacorb.notification.servant; 2 3 22 23 import org.apache.avalon.framework.configuration.Configuration; 24 import org.jacorb.notification.MessageFactory; 25 import org.jacorb.notification.OfferManager; 26 import org.jacorb.notification.SubscriptionManager; 27 import org.jacorb.notification.engine.TaskProcessor; 28 import org.omg.CORBA.ORB ; 29 import org.omg.CosEventChannelAdmin.AlreadyConnected; 30 import org.omg.CosEventChannelAdmin.ProxyPushConsumerHelper; 31 import org.omg.CosEventChannelAdmin.ProxyPushConsumerOperations; 32 import org.omg.CosEventChannelAdmin.ProxyPushConsumerPOATie; 33 import org.omg.PortableServer.POA ; 34 import org.omg.PortableServer.Servant ; 35 36 40 41 public class ECProxyPushConsumerImpl 42 extends ProxyPushConsumerImpl 43 implements ProxyPushConsumerOperations 44 { 45 public ECProxyPushConsumerImpl(IAdmin admin, ORB orb, POA poa, Configuration conf, TaskProcessor taskProcessor, MessageFactory mf) 46 { 47 super(admin, orb, poa, conf, taskProcessor, mf, null, OfferManager.NULL_MANAGER, SubscriptionManager.NULL_MANAGER); 48 } 49 50 public void connect_push_supplier( org.omg.CosEventComm.PushSupplier pushSupplier ) 51 throws AlreadyConnected 52 { 53 connect_any_push_supplier( pushSupplier ); 54 } 55 56 57 public synchronized Servant getServant() 58 { 59 if ( thisServant_ == null ) 60 { 61 thisServant_ = new ProxyPushConsumerPOATie( this ); 62 } 63 64 return thisServant_; 65 } 66 67 68 public org.omg.CORBA.Object activate() 69 { 70 return ProxyPushConsumerHelper.narrow(getServant()._this_object(getORB())); 71 } 72 73 } 74 | Popular Tags |