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.ProxyPushConsumerOperations;
31: import org.omg.CosEventChannelAdmin.ProxyPushConsumerPOATie;
32: import org.omg.PortableServer.POA;
33: import org.omg.PortableServer.Servant;
34:
35: /**
36: * @jmx.mbean extends = "AbstractProxyConsumerMBean"
37: * @jboss.xmbean
38: *
39: * @author Alphonse Bendt
40: * @version $Id: ECProxyPushConsumerImpl.java,v 1.9 2006/01/12 22:34:54 alphonse.bendt Exp $
41: */
42:
43: public class ECProxyPushConsumerImpl extends ProxyPushConsumerImpl
44: implements ProxyPushConsumerOperations,
45: ECProxyPushConsumerImplMBean {
46: public ECProxyPushConsumerImpl(IAdmin admin, ORB orb, POA poa,
47: Configuration conf, TaskProcessor taskProcessor,
48: MessageFactory mf) {
49: super (admin, orb, poa, conf, taskProcessor, mf, null,
50: OfferManager.NULL_MANAGER,
51: SubscriptionManager.NULL_MANAGER);
52: }
53:
54: public void connect_push_supplier(
55: org.omg.CosEventComm.PushSupplier pushSupplier)
56: throws AlreadyConnected {
57: connect_any_push_supplier(pushSupplier);
58: }
59:
60: public Servant newServant() {
61: return new ProxyPushConsumerPOATie(this);
62: }
63: }
|