View Javadoc
1   /**
2    * Copyright 2010-2014 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.log4j.model;
17  
18  import java.util.ArrayList;
19  import java.util.List;
20  
21  import javax.xml.bind.annotation.XmlAttribute;
22  import javax.xml.bind.annotation.XmlElement;
23  
24  /**
25   * @deprecated
26   */
27  @Deprecated
28  public class Appender {
29  
30  	String name;
31  	Class<?> javaClass;
32  	Layout layout;
33  	List<Param> params = new ArrayList<Param>();
34  
35  	public Appender(Appender appender) {
36  		super();
37  		this.name = appender.getName();
38  		this.javaClass = appender.getJavaClass();
39  		this.layout = appender.getLayout();
40  		for (Param param : params) {
41  			this.params.add(new Param(param));
42  		}
43  	}
44  
45  	public Appender() {
46  		this(null, null, null);
47  	}
48  
49  	public Appender(String name, Class<?> javaClass, Layout layout) {
50  		super();
51  		this.name = name;
52  		this.javaClass = javaClass;
53  		this.layout = layout;
54  	}
55  
56  	@XmlAttribute
57  	public String getName() {
58  		return name;
59  	}
60  
61  	@XmlAttribute(name = "class")
62  	public Class<?> getJavaClass() {
63  		return javaClass;
64  	}
65  
66  	@XmlElement(name = "param")
67  	public List<Param> getParams() {
68  		return params;
69  	}
70  
71  	public void setName(String name) {
72  		this.name = name;
73  	}
74  
75  	public void setJavaClass(Class<?> javaClass) {
76  		this.javaClass = javaClass;
77  	}
78  
79  	public Layout getLayout() {
80  		return layout;
81  	}
82  
83  	public void setLayout(Layout layout) {
84  		this.layout = layout;
85  	}
86  
87  	public void setParams(List<Param> params) {
88  		this.params = params;
89  	}
90  }