    001    /*
    002     * Licensed to the Apache Software Foundation (ASF) under one or more
    003     * contributor license agreements. See the NOTICE file distributed with
    004     * this work for additional information regarding copyright ownership.
    005     * The ASF licenses this file to You under the Apache License, Version 2.0
    006     * (the "License"); you may not use this file except in compliance with
    007     * the License. You may obtain a copy of the License at
    008     *
    009     *      http://www.apache.org/licenses/LICENSE-2.0
    010     *
    011     * Unless required by applicable law or agreed to in writing, software
    012     * distributed under the License is distributed on an "AS IS" BASIS,
    013     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    014     * See the License for the specific language governing permissions and
    015     * limitations under the License.
    016     */
    017
    018    package org.apache.logging.log4j.core.config.plugins.processor;
    019
    020    import java.io.Serializable;
    021
    022    /**
    023     * Memento object for storing a plugin entry to a cache file.
    024     */
    025    public class PluginEntry implements Serializable {
    026        public static final long serialVersionUID = 1L;
    027
    028        private String key;
    029        private String className;
    030        private String name;
    031        private boolean printable;
    032        private boolean defer;
    033        private transient String category;
    034
    035        public String getKey() {
    036            return key;
    037        }
    038
    039        public void setKey(final String key) {
    040            this.key = key;
    041        }
    042
    043        public String getClassName() {
    044            return className;
    045        }
    046
    047        public void setClassName(final String className) {
    048            this.className = className;
    049        }
    050
    051        public String getName() {
    052            return name;
    053        }
    054
    055        public void setName(final String name) {
    056            this.name = name;
    057        }
    058
    059        public boolean isPrintable() {
    060            return printable;
    061        }
    062
    063        public void setPrintable(final boolean printable) {
    064            this.printable = printable;
    065        }
    066
    067        public boolean isDefer() {
    068            return defer;
    069        }
    070
    071        public void setDefer(final boolean defer) {
    072            this.defer = defer;
    073        }
    074
    075        public String getCategory() {
    076            return category;
    077        }
    078
    079        public void setCategory(final String category) {
    080            this.category = category;
    081        }
    082    }