1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.util.spring;
17
18 import org.kuali.common.util.Assert;
19 import org.springframework.beans.factory.FactoryBean;
20
21
22
23
24 @Deprecated
25 public class ProjectFactoryBean<T> implements FactoryBean<org.kuali.common.util.Project> {
26
27 String gav;
28 boolean singleton = true;
29
30 @Override
31 public org.kuali.common.util.Project getObject() {
32 Assert.hasText(gav);
33 return org.kuali.common.util.ProjectUtils.loadProject(gav);
34 }
35
36 @Override
37 public Class<org.kuali.common.util.Project> getObjectType() {
38 return org.kuali.common.util.Project.class;
39 }
40
41 @Override
42 public boolean isSingleton() {
43 return singleton;
44 }
45
46 public String getGav() {
47 return gav;
48 }
49
50 public void setGav(String gav) {
51 this.gav = gav;
52 }
53
54 public void setSingleton(boolean singleton) {
55 this.singleton = singleton;
56 }
57
58 }