01: package org.jacorb.notification.servant;
02:
03: /*
04: * JacORB - a free Java ORB
05: *
06: * Copyright (C) 1997-2004 Gerald Brose.
07: *
08: * This library is free software; you can redistribute it and/or
09: * 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;
29: import org.omg.CosEventChannelAdmin.AlreadyConnected;
30: import org.omg.CosEventChannelAdmin.ProxyPullConsumerOperations;
31: import org.omg.CosEventChannelAdmin.ProxyPullConsumerPOATie;
32: import org.omg.CosEventComm.PullSupplier;
33: import org.omg.PortableServer.POA;
34: import org.omg.PortableServer.Servant;
35:
36: /**
37: * @jmx.mbean extends = "AbstractProxyConsumerMBean"
38: * @jboss.xmbean
39: *
40: * @author Alphonse Bendt
41: * @version $Id: ECProxyPullConsumerImpl.java,v 1.9 2006/01/12 22:34:54 alphonse.bendt Exp $
42: */
43:
44: public class ECProxyPullConsumerImpl extends ProxyPullConsumerImpl
45: implements ProxyPullConsumerOperations,
46: ECProxyPullConsumerImplMBean {
47: public ECProxyPullConsumerImpl(IAdmin admin, ORB orb, POA poa,
48: Configuration conf, TaskProcessor taskProcessor,
49: MessageFactory messageFactory) {
50: super (admin, orb, poa, conf, taskProcessor, messageFactory,
51: OfferManager.NULL_MANAGER,
52: SubscriptionManager.NULL_MANAGER);
53: }
54:
55: public void connect_pull_supplier(PullSupplier pullSupplier)
56: throws AlreadyConnected {
57: connect_any_pull_supplier(pullSupplier);
58: }
59:
60: public Servant newServant() {
61: return new ProxyPullConsumerPOATie(this);
62: }
63: }
|