01: /*
02: * Created on Nov 30, 2005
03: */
04: package uk.org.ponder.springutil;
05:
06: import java.util.List;
07:
08: import org.springframework.beans.factory.FactoryBean;
09:
10: // hopefully temporary class, getting round the fact that RSAC does not
11: // support inner beans.
12: public class ListFactory implements FactoryBean {
13: private List list;
14:
15: public Object getObject() throws Exception {
16: return list;
17: }
18:
19: public Class getObjectType() {
20: return List.class;
21: }
22:
23: public boolean isSingleton() {
24: return true;
25: }
26:
27: public void setList(List list) {
28: this.list = list;
29: }
30: }
|