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.springframework.beans.factory.FactoryBean;
19
20 public class GetDefaultPropertyContextLocationFactoryBean implements FactoryBean<String> {
21
22 String gav;
23 boolean singleton = true;
24
25 @Override
26 public String getObject() throws Exception {
27 return SpringUtils.getDefaultPropertyContextLocation(gav);
28 }
29
30 @Override
31 public Class<String> getObjectType() {
32 return String.class;
33 }
34
35 @Override
36 public boolean isSingleton() {
37 return singleton;
38 }
39
40 public String getGav() {
41 return gav;
42 }
43
44 public void setGav(String gav) {
45 this.gav = gav;
46 }
47
48 public void setSingleton(boolean singleton) {
49 this.singleton = singleton;
50 }
51
52 }