01: /* Copyright 2001, 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 the reference implemetation of <code>IGroupService</code>.
13: * @author Dan Ellentuck
14: * @version $Revision: 36539 $
15: * @deprecated
16: */
17:
18: public class ReferenceGroupServiceFactory implements
19: IGroupServiceFactory {
20:
21: private static final Log log = LogFactory
22: .getLog(ReferenceGroupServiceFactory.class);
23:
24: /**
25: * ReferenceGroupServiceFactory constructor.
26: */
27: public ReferenceGroupServiceFactory() {
28: super ();
29: }
30:
31: /**
32: * Return an instance of the service implementation.
33: * @return org.jasig.portal.groups.IGroupService
34: * @exception org.jasig.portal.groups.GroupsException
35: */
36: public IGroupService newGroupService() throws GroupsException {
37: try {
38: return ReferenceGroupService.singleton();
39: } catch (GroupsException ge) {
40: log.error(ge.getMessage(), ge);
41: throw new GroupsException(ge);
42: }
43: }
44: }
|