View Javadoc

    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements. See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License. You may obtain a copy of the License at
    8    *
    9    *      http://www.apache.org/licenses/LICENSE-2.0
    10   *
    11   * Unless required by applicable law or agreed to in writing, software
    12   * distributed under the License is distributed on an "AS IS" BASIS,
    13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   * See the License for the specific language governing permissions and
    15   * limitations under the License.
    16   */
    17
    18  package org.apache.logging.log4j.core.config.plugins.processor;
    19
    20  import java.io.Serializable;
    21
    22  /**
    23   * Memento object for storing a plugin entry to a cache file.
    24   */
    25  public class PluginEntry implements Serializable {
    26      public static final long serialVersionUID = 1L;
    27
    28      private String key;
    29      private String className;
    30      private String name;
    31      private boolean printable;
    32      private boolean defer;
    33      private transient String category;
    34
    35      public String getKey() {
    36          return key;
    37      }
    38
    39      public void setKey(final String key) {
    40          this.key = key;
    41      }
    42
    43      public String getClassName() {
    44          return className;
    45      }
    46
    47      public void setClassName(final String className) {
    48          this.className = className;
    49      }
    50
    51      public String getName() {
    52          return name;
    53      }
    54
    55      public void setName(final String name) {
    56          this.name = name;
    57      }
    58
    59      public boolean isPrintable() {
    60          return printable;
    61      }
    62
    63      public void setPrintable(final boolean printable) {
    64          this.printable = printable;
    65      }
    66
    67      public boolean isDefer() {
    68          return defer;
    69      }
    70
    71      public void setDefer(final boolean defer) {
    72          this.defer = defer;
    73      }
    74
    75      public String getCategory() {
    76          return category;
    77      }
    78
    79      public void setCategory(final String category) {
    80          this.category = category;
    81      }
    82  }