01: /*
02: * Copyright 2005 Sun Microsystems, Inc. All
03: * rights reserved. Use of this product is subject
04: * to license terms. Federal Acquisitions:
05: * Commercial Software -- Government Users
06: * Subject to Standard License Terms and
07: * Conditions.
08: *
09: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
10: * are trademarks or registered trademarks of Sun Microsystems,
11: * Inc. in the United States and other countries.
12: */
13:
14: package com.sun.portal.wsrp.common.registry;
15:
16: import com.sun.portal.wsrp.WSRPException;
17: import com.sun.portal.wsrp.common.registry.ebxml.RegistryManagerImpl;
18:
19: public class RegistryManagerFactory {
20:
21: private static RegistryManagerFactory rfactory = new RegistryManagerFactory();
22:
23: private RegistryManagerFactory() {
24: }
25:
26: public static RegistryManagerFactory getInstance() {
27: return rfactory;
28: }
29:
30: public RegistryManager getRegistryManager(String TYPE,
31: RegistryConfiguration config) throws WSRPException {
32: if (TYPE.equals(RegistryConstants.TYPE_EBXML)) {
33:
34: return new RegistryManagerImpl(config);
35:
36: } else {
37: throw new WSRPException("Registry type not supported :"
38: + TYPE);
39: }
40: }
41: }
|