Constructor and Description |
---|
PluginBuilder(PluginType<?> pluginType)
Constructs a PluginBuilder for a given PluginType.
|
Modifier and Type | Method and Description |
---|---|
Object |
build()
Builds the plugin object.
|
PluginBuilder |
forLogEvent(LogEvent event)
Specifies the LogEvent that may be used to provide extra context for string substitutions.
|
static boolean |
validateFields(Builder<?> builder,
String errorPrefix) |
PluginBuilder |
withConfiguration(Configuration configuration)
Specifies the Configuration to use for constructing the plugin instance.
|
PluginBuilder |
withConfigurationNode(Node node)
Specifies the Node corresponding to the plugin object that will be created.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorPrefix, isValid
public PluginBuilder(PluginType<?> pluginType)
pluginType
- type of plugin to configurepublic PluginBuilder withConfiguration(Configuration configuration)
configuration
- the configuration to use.this
public PluginBuilder withConfigurationNode(Node node)
node
- the plugin configuration node to use.this
public PluginBuilder forLogEvent(LogEvent event)
event
- the event to use for extra information.this
public Object build()
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.