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.groups.pags;
07:
08: import org.jasig.portal.groups.ComponentGroupServiceDescriptor;
09: import org.jasig.portal.groups.GroupsException;
10: import org.jasig.portal.groups.IEntityGroupStore;
11: import org.jasig.portal.groups.IEntityGroupStoreFactory;
12:
13: /**
14: * Factory class for Person Attributes Group Store
15: *
16: * @author Al Wold
17: */
18: public class PersonAttributesGroupStoreFactory implements
19: IEntityGroupStoreFactory {
20: private static IEntityGroupStore groupStore;
21:
22: public static synchronized IEntityGroupStore getGroupStore() {
23: if (groupStore == null) {
24: groupStore = new PersonAttributesGroupStore();
25: }
26: return groupStore;
27: }
28:
29: public IEntityGroupStore newGroupStore() throws GroupsException {
30: return getGroupStore();
31: }
32:
33: public IEntityGroupStore newGroupStore(
34: ComponentGroupServiceDescriptor svcDescriptor)
35: throws GroupsException {
36: return getGroupStore();
37: }
38:
39: }
|