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: * Factory for creating <code>EntityGroupNameFinder</code>.
13: * @author Alex Vigdor
14: * @version $Revision: 35418 $
15: */
16: public class EntityGroupNameFinderFactory implements
17: IEntityNameFinderFactory {
18: private static final Log log = LogFactory
19: .getLog(EntityGroupNameFinderFactory.class);
20:
21: public EntityGroupNameFinderFactory() {
22: }
23:
24: public IEntityNameFinder newFinder() throws GroupsException {
25: try {
26: return EntityGroupNameFinder.singleton();
27: } catch (Exception e) {
28: log.error(e.getMessage(), e);
29: throw new GroupsException(e);
30: }
31: }
32: }
|