1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
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 }