01: /*
02: * Created on 30-Nov-2006
03: */
04: package uk.org.ponder.springutil;
05:
06: import java.util.TimeZone;
07:
08: import org.springframework.beans.factory.FactoryBean;
09:
10: public class TimeZoneFactory implements FactoryBean {
11: public Object getObject() throws Exception {
12: return TimeZone.getDefault();
13: }
14:
15: public Class getObjectType() {
16: return TimeZone.class;
17: }
18:
19: public boolean isSingleton() {
20: return true;
21: }
22:
23: }
|