|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the Plugin class this is a builder for.public interface Builder<T>
A type of Plugin builder that can be used to configure and create a plugin instance using a Java DSL instead of through a configuration file. These builders are primarily useful for internal code and unit tests, but they can technically be used as a verbose alternative to configuration files.
When creating plugin builders, it is customary to create the builder class as a public static inner class
called Builder
. For instance, the builder class for
PatternLayout
would be
PatternLayout.Builder
.
Method Summary | |
---|---|
T |
build()
Builds the plugin object after all configuration has been set. |
Method Detail |
---|
T build()
ConfigurationException
- if there was an error building the plugin
object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2015 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.