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 java.sql.SQLException;
09:
10: import org.apache.commons.logging.Log;
11: import org.apache.commons.logging.LogFactory;
12:
13: /**
14: * Factory for creating <code>ReferencePersonNameFinders</code>.
15: * @author Dan Ellentuck
16: * @version $Revision: 35418 $
17: */
18:
19: public class ReferencePersonNameFinderFactory implements
20: IEntityNameFinderFactory {
21: private static final Log log = LogFactory
22: .getLog(ReferencePersonNameFinderFactory.class);
23:
24: /**
25: * ReferencePersonNameFinderFactory constructor comment.
26: */
27: public ReferencePersonNameFinderFactory() {
28: super ();
29: }
30:
31: /**
32: * Return a finder instance.
33: * @return org.jasig.portal.groups.IEntityNameFinder
34: * @exception org.jasig.portal.groups.GroupsException
35: */
36: public IEntityNameFinder newFinder() throws GroupsException {
37: try {
38: return ReferencePersonNameFinder.singleton();
39: } catch (SQLException sqle) {
40: log.error(sqle.getMessage(), sqle);
41: throw new GroupsException(sqle);
42: }
43: }
44: }
|