001 package org.kuali.common.util.log4j.model; 002 003 import java.util.ArrayList; 004 import java.util.List; 005 006 import javax.xml.bind.annotation.XmlAttribute; 007 import javax.xml.bind.annotation.XmlElement; 008 009 /** 010 * @deprecated 011 */ 012 @Deprecated 013 public class Appender { 014 015 String name; 016 Class<?> javaClass; 017 Layout layout; 018 List<Param> params = new ArrayList<Param>(); 019 020 public Appender(Appender appender) { 021 super(); 022 this.name = appender.getName(); 023 this.javaClass = appender.getJavaClass(); 024 this.layout = appender.getLayout(); 025 for (Param param : params) { 026 this.params.add(new Param(param)); 027 } 028 } 029 030 public Appender() { 031 this(null, null, null); 032 } 033 034 public Appender(String name, Class<?> javaClass, Layout layout) { 035 super(); 036 this.name = name; 037 this.javaClass = javaClass; 038 this.layout = layout; 039 } 040 041 @XmlAttribute 042 public String getName() { 043 return name; 044 } 045 046 @XmlAttribute(name = "class") 047 public Class<?> getJavaClass() { 048 return javaClass; 049 } 050 051 @XmlElement(name = "param") 052 public List<Param> getParams() { 053 return params; 054 } 055 056 public void setName(String name) { 057 this.name = name; 058 } 059 060 public void setJavaClass(Class<?> javaClass) { 061 this.javaClass = javaClass; 062 } 063 064 public Layout getLayout() { 065 return layout; 066 } 067 068 public void setLayout(Layout layout) { 069 this.layout = layout; 070 } 071 072 public void setParams(List<Param> params) { 073 this.params = params; 074 } 075 }