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.TaskProcessor;
28: import org.omg.CORBA.ORB;
29: import org.omg.CosEventChannelAdmin.AlreadyConnected;
30: import org.omg.CosEventChannelAdmin.ProxyPullSupplierOperations;
31: import org.omg.CosEventChannelAdmin.ProxyPullSupplierPOATie;
32: import org.omg.CosEventComm.PullConsumer;
33: import org.omg.CosNotifyChannelAdmin.ConsumerAdmin;
34: import org.omg.PortableServer.POA;
35: import org.omg.PortableServer.Servant;
36:
37: /**
38: * @author Alphonse Bendt
39: * @version $Id: ECProxyPullSupplierImpl.java,v 1.10 2006/01/12 22:34:54 alphonse.bendt Exp $
40: */
41:
42: public class ECProxyPullSupplierImpl extends ProxyPullSupplierImpl
43: implements ProxyPullSupplierOperations {
44: private static final ConsumerAdmin NO_ADMIN = null;
45:
46: public ECProxyPullSupplierImpl(IAdmin admin, ORB orb, POA poa,
47: Configuration conf, TaskProcessor taskProcessor)
48: throws ConfigurationException {
49: super (admin, orb, poa, conf, taskProcessor,
50: OfferManager.NULL_MANAGER,
51: SubscriptionManager.NULL_MANAGER, NO_ADMIN);
52: }
53:
54: public void connect_pull_consumer(PullConsumer pullConsumer)
55: throws AlreadyConnected {
56: connect_any_pull_consumer(pullConsumer);
57: }
58:
59: public Servant newServant() {
60: return new ProxyPullSupplierPOATie(this);
61: }
62: }
|