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: import org.apache.wsrp4j.consumer.driver.GenericProducerRegistryImpl;
10:
11: /**
12: * Custom ProducerRegistry implementation for uPortal.
13: * @author Ken Weiner, kweiner@unicon.net
14: * @version $Revision: 34799 $
15: */
16: public class ProducerRegistryImpl extends GenericProducerRegistryImpl {
17:
18: private static ProducerRegistry instance = null;
19:
20: private ProducerRegistryImpl() {
21: super ();
22: }
23:
24: /**
25: * Get an instance of the singleton producer registry object
26: **/
27: public static ProducerRegistry getInstance() {
28: if (instance == null) {
29: instance = new ProducerRegistryImpl();
30: }
31:
32: return instance;
33: }
34:
35: }
|