Class PluginAnnotationFactoryResolversPostProcessor
java.lang.Object
org.apache.logging.log4j.plugins.di.spi.FactoryResolversPostProcessor
org.apache.logging.log4j.plugins.di.resolver.PluginAnnotationFactoryResolversPostProcessor
- All Implemented Interfaces:
ConfigurableInstanceFactoryPostProcessor
@Ordered(100)
public class PluginAnnotationFactoryResolversPostProcessor
extends FactoryResolversPostProcessor
Post-processor that adds support for various plugin-related annotations. These cover injectable keys with a
defined
Namespace
and one of the following types. Note that the generic parameter T
may be a
plugin class, interface, or a Supplier<T>
where plugin factories
will be injected rather than plugin instances.
PluginNamespace
for a collection of plugin types within a namespacePluginType<T>
for a named or typed plugin within a namespaceMap<String, T>
for a map of plugins keyed by nameStream<T>
for a stream of pluginsSet<T>
for a set of pluginsList<T>
for a list of pluginsOptional<T>
for an optional plugin@PluginElement
for configurable children plugin instances@PluginAttribute
for configurable plugin options@PluginBuilderAttribute
for configurable plugin options — in contrast toPluginAttribute
, default values for options should be specified in a field which is useful in plugin builder classes@PluginValue
for configurable plugin values — special type of attribute that may have its own dedicated syntax depending on the configuration format in use such as XML
- See Also:
-
PluginNamespaceFactoryResolver
PluginTypeFactoryResolver
PluginMapFactoryResolver
PluginStreamFactoryResolver
PluginSetFactoryResolver
PluginListFactoryResolver
PluginOptionalFactoryResolver
PluginElementFactoryResolver
PluginAttributeFactoryResolver
PluginBuilderAttributeFactoryResolver
PluginValueFactoryResolver
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.logging.log4j.plugins.di.spi.FactoryResolversPostProcessor
postProcessFactory
-
Constructor Details
-
PluginAnnotationFactoryResolversPostProcessor
public PluginAnnotationFactoryResolversPostProcessor()
-