View Javadoc
1   /**
2    * Copyright 2010-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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   * @deprecated
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  }