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>IIndividualGroupService</code>.
13: * @author Dan Ellentuck
14: * @version $Revision: 35418 $
15: */
16:
17: public class ReferenceIndividualGroupServiceFactory implements
18: IComponentGroupServiceFactory {
19:
20: private static final Log log = LogFactory
21: .getLog(ReferenceIndividualGroupServiceFactory.class);
22:
23: /**
24: * ReferenceGroupServiceFactory constructor.
25: */
26: public ReferenceIndividualGroupServiceFactory() {
27: super ();
28: }
29:
30: /**
31: * Return an instance of the service implementation.
32: * @return IIndividualGroupService
33: * @exception GroupsException
34: */
35: public IComponentGroupService newGroupService()
36: throws GroupsException {
37: return newGroupService(new ComponentGroupServiceDescriptor());
38: }
39:
40: /**
41: * Return an instance of the service implementation.
42: * @return IIndividualGroupService
43: * @exception GroupsException
44: */
45: public IComponentGroupService newGroupService(
46: ComponentGroupServiceDescriptor svcDescriptor)
47: throws GroupsException {
48: try {
49: return new ReferenceIndividualGroupService(svcDescriptor);
50: } catch (GroupsException ge) {
51: log.error(ge.getMessage(), ge);
52: throw new GroupsException(ge);
53: }
54: }
55: }
|