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.apache.avalon.framework.configuration.ConfigurationException;
25: import org.jacorb.notification.OfferManager;
26: import org.jacorb.notification.SubscriptionManager;
27: import org.jacorb.notification.engine.PushTaskExecutorFactory;
28: import org.jacorb.notification.engine.TaskProcessor;
29: import org.omg.CORBA.ORB;
30: import org.omg.CosEventChannelAdmin.AlreadyConnected;
31: import org.omg.CosEventChannelAdmin.ProxyPushSupplierOperations;
32: import org.omg.CosEventChannelAdmin.ProxyPushSupplierPOATie;
33: import org.omg.CosEventComm.PushConsumer;
34: import org.omg.CosNotifyChannelAdmin.ConsumerAdmin;
35: import org.omg.PortableServer.POA;
36: import org.omg.PortableServer.Servant;
37:
38: /**
39: * @jmx.mbean extends = "AbstractProxyPushSupplierMBean"
40: * @jboss.xmbean
41: *
42: * @author Alphonse Bendt
43: * @version $Id: ECProxyPushSupplierImpl.java,v 1.13 2006/01/12 22:34:54 alphonse.bendt Exp $
44: */
45: public class ECProxyPushSupplierImpl extends ProxyPushSupplierImpl
46: implements ProxyPushSupplierOperations,
47: ECProxyPushSupplierImplMBean {
48: private static final ConsumerAdmin NO_ADMIN = null;
49:
50: public ECProxyPushSupplierImpl(IAdmin admin, ORB orb, POA poa,
51: Configuration conf, TaskProcessor taskProcessor,
52: PushTaskExecutorFactory pushTaskExecutorFactory)
53: throws ConfigurationException {
54: super (admin, orb, poa, conf, taskProcessor,
55: pushTaskExecutorFactory, OfferManager.NULL_MANAGER,
56: SubscriptionManager.NULL_MANAGER, NO_ADMIN);
57: }
58:
59: ////////////////////////////////////////
60:
61: public void connect_push_consumer(PushConsumer pushConsumer)
62: throws AlreadyConnected {
63: connect_any_push_consumer(pushConsumer);
64: }
65:
66: public Servant newServant() {
67: return new ProxyPushSupplierPOATie(this);
68: }
69:
70: }
|