View Javadoc
1   package org.kuali.common.util.log4j.model;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   
6   import javax.xml.bind.annotation.XmlAttribute;
7   import javax.xml.bind.annotation.XmlElement;
8   
9   /**
10   * @deprecated
11   */
12  @Deprecated
13  public class Appender {
14  
15  	String name;
16  	Class<?> javaClass;
17  	Layout layout;
18  	List<Param> params = new ArrayList<Param>();
19  
20  	public Appender(Appender appender) {
21  		super();
22  		this.name = appender.getName();
23  		this.javaClass = appender.getJavaClass();
24  		this.layout = appender.getLayout();
25  		for (Param param : params) {
26  			this.params.add(new Param(param));
27  		}
28  	}
29  
30  	public Appender() {
31  		this(null, null, null);
32  	}
33  
34  	public Appender(String name, Class<?> javaClass, Layout layout) {
35  		super();
36  		this.name = name;
37  		this.javaClass = javaClass;
38  		this.layout = layout;
39  	}
40  
41  	@XmlAttribute
42  	public String getName() {
43  		return name;
44  	}
45  
46  	@XmlAttribute(name = "class")
47  	public Class<?> getJavaClass() {
48  		return javaClass;
49  	}
50  
51  	@XmlElement(name = "param")
52  	public List<Param> getParams() {
53  		return params;
54  	}
55  
56  	public void setName(String name) {
57  		this.name = name;
58  	}
59  
60  	public void setJavaClass(Class<?> javaClass) {
61  		this.javaClass = javaClass;
62  	}
63  
64  	public Layout getLayout() {
65  		return layout;
66  	}
67  
68  	public void setLayout(Layout layout) {
69  		this.layout = layout;
70  	}
71  
72  	public void setParams(List<Param> params) {
73  		this.params = params;
74  	}
75  }