Project

General

Profile

1
/**
2
 *  '$RCSfile$'
3
 *    Purpose: A Class that implements session utility methods 
4
 *  Copyright: 2008 Regents of the University of California and the
5
 *             National Center for Ecological Analysis and Synthesis
6
 *    Authors: Michael Daigle
7
 * 
8
 *   '$Author: daigle $'
9
 *     '$Date: 2008-10-09 09:53:18 -0700 (Thu, 09 Oct 2008) $'
10
 * '$Revision: 4429 $'
11
 *
12
 * This program is free software; you can redistribute it and/or modify
13
 * it under the terms of the GNU General Public License as published by
14
 * the Free Software Foundation; either version 2 of the License, or
15
 * (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU General Public License
23
 * along with this program; if not, write to the Free Software
24
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25
 */
26

    
27
package edu.ucsb.nceas.metacat.service;
28

    
29
import java.util.Hashtable;
30
import java.util.Vector;
31

    
32
import org.apache.log4j.Logger;
33

    
34
import edu.ucsb.nceas.metacat.util.SessionData;
35

    
36
public class ServiceService extends BaseService {
37
	
38
	private static ServiceService serviceService = null;
39
	
40
	private static Logger logMetacat = Logger.getLogger(ServiceService.class);
41
	private static Hashtable<String, Class> ServiceList = null;
42

    
43
	/**
44
	 * private constructor since this is a singleton
45
	 */
46
	private ServiceService() {
47
		
48
	}
49
	
50
	/**
51
	 * Get the single instance of ServiceService.
52
	 * 
53
	 * @return the single instance of ServiceService
54
	 */
55
	public static ServiceService getInstance() {
56
		if (serviceService == null) {
57
			serviceService = new ServiceService();
58
		}
59
		return serviceService;
60
	}
61
	
62
	public boolean refreshable() {
63
		return false;
64
	}
65
	
66
	protected void doRefresh() {
67
		return;
68
	}
69
	
70

    
71
}
(5-5/9)