01: /*
02: * Created on 7 Aug 2006
03: */
04: package uk.org.ponder.springutil;
05:
06: import org.springframework.beans.factory.FactoryBean;
07:
08: // hopefully temporary class, getting around the fact that RSAC does not
09: // support constructor args
10: public class BooleanFactory implements FactoryBean {
11: private Boolean value;
12:
13: public void setValue(Boolean value) {
14: this .value = value;
15: }
16:
17: public Object getObject() throws Exception {
18: return value;
19: }
20:
21: public Class getObjectType() {
22: return Boolean.class;
23: }
24:
25: public boolean isSingleton() {
26: return true;
27: }
28:
29: }
|