T
- This builder creates instances of this class.public interface Builder<T>
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
.
Modifier and Type | Method and Description |
---|---|
T |
build()
Builds the object after all configuration has been set.
|
default String |
getErrorPrefix()
Prefix to use to report errors from this builder.
|
default boolean |
isValid() |
T build()
ConfigurationException
- if there was an error building the
object.default boolean isValid()
default String getErrorPrefix()
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.