Package org.jdbi.v3.core.qualifier
Class Qualifiers
java.lang.Object
org.jdbi.v3.core.qualifier.Qualifiers
- All Implemented Interfaces:
JdbiConfig<Qualifiers>
Utility class for type qualifiers supported by Jdbi core.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this configuration object.findFor
(AnnotatedElement... elements) Returns the set of qualifying annotations on the given elements.<ELEM extends AnnotatedElement & Type>
QualifiedType<?> qualifiedTypeOf
(ELEM type) void
setRegistry
(ConfigRegistry registry) The registry will inject itself into the configuration object.
-
Constructor Details
-
Qualifiers
public Qualifiers()
-
-
Method Details
-
setRegistry
Description copied from interface:JdbiConfig
The registry will inject itself into the configuration object. This can be useful if you need to look up dependencies. You will get a new registry after being copied.- Specified by:
setRegistry
in interfaceJdbiConfig<Qualifiers>
- Parameters:
registry
- the registry that owns this configuration object
-
qualifiedTypeOf
-
findFor
Returns the set of qualifying annotations on the given elements.- Parameters:
elements
- the annotated elements. Null elements are ignored.- Returns:
- the set of qualifying annotations on the given elements.
-
createCopy
Description copied from interface:JdbiConfig
Returns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
createCopy
in interfaceJdbiConfig<Qualifiers>
- Returns:
- a copy of this configuration object.
-