KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > notification > servant > ECProxyPushConsumerImpl


1 package org.jacorb.notification.servant;
2
3 /*
4  * JacORB - a free Java ORB
5  *
6  * Copyright (C) 1997-2004 Gerald Brose.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the Free
20  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */

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 JavaDoc;
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 JavaDoc;
34 import org.omg.PortableServer.Servant JavaDoc;
35
36 /**
37  * @author Alphonse Bendt
38  * @version $Id: ECProxyPushConsumerImpl.java,v 1.6 2005/02/14 00:11:54 alphonse.bendt Exp $
39  */

40
41 public class ECProxyPushConsumerImpl
42     extends ProxyPushConsumerImpl
43     implements ProxyPushConsumerOperations
44 {
45     public ECProxyPushConsumerImpl(IAdmin admin, ORB JavaDoc orb, POA JavaDoc 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 JavaDoc 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 JavaDoc activate()
69     {
70         return ProxyPushConsumerHelper.narrow(getServant()._this_object(getORB()));
71     }
72
73 }
74
Popular Tags