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
21
22
23
24
25 @Deprecated
26 public class ScmServiceFactoryBean implements FactoryBean<org.kuali.common.util.service.ScmService> {
27
28 String url;
29 boolean singleton = true;
30
31 @Override
32 public org.kuali.common.util.service.ScmService getObject() {
33 return org.kuali.common.util.ScmUtils.getScmService(url);
34 }
35
36 @Override
37 public Class<org.kuali.common.util.service.ScmService> getObjectType() {
38 return org.kuali.common.util.service.ScmService.class;
39 }
40
41 @Override
42 public boolean isSingleton() {
43 return singleton;
44 }
45
46 public String getUrl() {
47 return url;
48 }
49
50 public void setUrl(String url) {
51 this.url = url;
52 }
53
54 public void setSingleton(boolean singleton) {
55 this.singleton = singleton;
56 }
57
58 }