01: /* Copyright 2004 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.wsrp.consumer.portlet;
07:
08: import org.apache.wsrp4j.consumer.ProducerRegistry;
09:
10: /**
11: * Class implements the consumer environment interface for the
12: * proxy portlet consumer.
13: * @author Ken Weiner, kweiner@unicon.net
14: * @version $Revision: 34799 $
15: */
16: public class ConsumerEnvironmentImpl extends
17: org.apache.wsrp4j.consumer.portlet.impl.ConsumerEnvironmentImpl {
18:
19: private static String CONSUMER_AGENT = "WSRP4J proxy portlet consumer v0.1";
20:
21: public ProducerRegistry getProducerRegistry() {
22: if (super .getProducerRegistry() == null) {
23: // Get producer registry
24: ProducerRegistry producerRegistry = ProducerRegistryImpl
25: .getInstance();
26: setProducerRegistry(producerRegistry);
27: }
28:
29: return super.getProducerRegistry();
30: }
31: }
|