Class PluginType<T>

java.lang.Object
org.apache.logging.log4j.plugins.model.PluginType<T>
Type Parameters:
T - The plug-in class, which can be any kind of class.

public class PluginType<T> extends Object
Plugin Descriptor. This is a memento object for Plugin annotations paired to their annotated classes.
See Also:
  • Constructor Details

    • PluginType

      public PluginType(PluginEntry pluginEntry, Class<T> pluginClass)
      Constructor.
      Parameters:
      pluginEntry - The PluginEntry.
      pluginClass - The plugin Class.
      Since:
      3.0.0
    • PluginType

      public PluginType(PluginEntry pluginEntry, ClassLoader classLoader)
      The Constructor.
      Parameters:
      pluginEntry - The PluginEntry.
      Since:
      3.0.0
  • Method Details

    • getPluginEntry

      public PluginEntry getPluginEntry()
    • getPluginClass

      public Class<T> getPluginClass()
    • getElementType

      public String getElementType()
    • getKey

      public String getKey()
      Return The plugin's key.
      Returns:
      The plugin key.
      Since:
      2.1
    • isObjectPrintable

      public boolean isObjectPrintable()
    • isDeferChildren

      public boolean isDeferChildren()
    • getNamespace

      public String getNamespace()
      Return the plugin namespace.
      Returns:
      the Plugin namespace.
      Since:
      2.1
    • getName

      public String getName()
    • getElementName

      public String getElementName()
    • toString

      public String toString()
      Overrides:
      toString in class Object