001/**
002 * Copyright 2010-2014 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.common.util.log4j.model;
017
018import java.util.ArrayList;
019import java.util.List;
020
021import javax.xml.bind.annotation.XmlAttribute;
022import javax.xml.bind.annotation.XmlElement;
023
024/**
025 * @deprecated
026 */
027@Deprecated
028public class Appender {
029
030        String name;
031        Class<?> javaClass;
032        Layout layout;
033        List<Param> params = new ArrayList<Param>();
034
035        public Appender(Appender appender) {
036                super();
037                this.name = appender.getName();
038                this.javaClass = appender.getJavaClass();
039                this.layout = appender.getLayout();
040                for (Param param : params) {
041                        this.params.add(new Param(param));
042                }
043        }
044
045        public Appender() {
046                this(null, null, null);
047        }
048
049        public Appender(String name, Class<?> javaClass, Layout layout) {
050                super();
051                this.name = name;
052                this.javaClass = javaClass;
053                this.layout = layout;
054        }
055
056        @XmlAttribute
057        public String getName() {
058                return name;
059        }
060
061        @XmlAttribute(name = "class")
062        public Class<?> getJavaClass() {
063                return javaClass;
064        }
065
066        @XmlElement(name = "param")
067        public List<Param> getParams() {
068                return params;
069        }
070
071        public void setName(String name) {
072                this.name = name;
073        }
074
075        public void setJavaClass(Class<?> javaClass) {
076                this.javaClass = javaClass;
077        }
078
079        public Layout getLayout() {
080                return layout;
081        }
082
083        public void setLayout(Layout layout) {
084                this.layout = layout;
085        }
086
087        public void setParams(List<Param> params) {
088                this.params = params;
089        }
090}