1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.logging.log4j.core.config.plugins;
18
19
20 import java.io.Serializable;
21
22
23
24
25 public class PluginType<T> implements Serializable {
26
27 private static final long serialVersionUID = 4743255148794846612L;
28
29 private final Class<T> pluginClass;
30 private final String elementName;
31 private boolean printObject = false;
32 private boolean deferChildren = false;
33
34 public PluginType(Class<T> clazz, String name, boolean printObj, boolean deferChildren) {
35 this.pluginClass = clazz;
36 this.elementName = name;
37 this.printObject = printObj;
38 this.deferChildren = deferChildren;
39 }
40
41 public Class<T> getPluginClass() {
42 return this.pluginClass;
43 }
44
45 public String getElementName() {
46 return this.elementName;
47 }
48
49 public boolean isObjectPrintable() {
50 return this.printObject;
51 }
52
53 public boolean isDeferChildren() {
54 return this.deferChildren;
55 }
56 }