Class Key.Builder<T>
java.lang.Object
org.apache.logging.log4j.plugins.di.Key.Builder<T>
- Type Parameters:
T
- type of key
Builder class for configuring a new
Key
instance.-
Method Summary
Modifier and TypeMethodDescriptionget()
Creates a newKey
from this builder's properties.Specifies the name of this key.setNamespace
(String namespace) Specifies the namespace of this key.setOrder
(int order) Specifies the order of this key for disambiguation.setQualifierType
(@Nullable Class<? extends Annotation> qualifierType) Specifies a qualifier annotation type.
-
Method Details
-
setQualifierType
Specifies a qualifier annotation type. Qualifiers are optional and are used for an additional comparison property for keys. -
setName
Specifies the name of this key. The default name for keys is the empty string. -
setNamespace
Specifies the namespace of this key. The default namespace for keys is the empty string. -
setOrder
Specifies the order of this key for disambiguation. This overrides any value discovered from theOrdered
annotation on the type of the key. -
get
Creates a newKey
from this builder's properties.
-