01: /* Copyright 2002 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.groups;
07:
08: import org.apache.commons.logging.Log;
09: import org.apache.commons.logging.LogFactory;
10:
11: /**
12: * Creates an instance of the reference <code>ICompositeGroupService</code>.
13: * @author Dan Ellentuck
14: * @version $Revision: 35418 $
15: */
16:
17: public class ReferenceCompositeGroupServiceFactory implements
18: ICompositeGroupServiceFactory {
19: private static final Log log = LogFactory
20: .getLog(ReferenceCompositeGroupServiceFactory.class);
21:
22: /**
23: * ReferenceGroupServiceFactory constructor.
24: */
25: public ReferenceCompositeGroupServiceFactory() {
26: super ();
27: }
28:
29: /**
30: * Return an instance of the service implementation.
31: * @return ICompositeGroupService
32: * @exception GroupsException
33: */
34: public ICompositeGroupService newGroupService()
35: throws GroupsException {
36: try {
37: ReferenceCompositeGroupService service = new ReferenceCompositeGroupService();
38: service.initializeComponentServices();
39: return service;
40: } catch (Exception ex) {
41: log
42: .error("ReferenceCompositeGroupServiceFactory.newGroupService(): "
43: + ex);
44: throw new GroupsException(ex);
45: }
46: }
47: }
|