Class Qualifiers

All Implemented Interfaces:

public class Qualifiers extends Object implements JdbiConfig<Qualifiers>
Utility class for type qualifiers supported by Jdbi core.
  • Constructor Details

    • Qualifiers

      public Qualifiers()
  • Method Details

    • setRegistry

      public void setRegistry(ConfigRegistry registry)
      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 interface JdbiConfig<Qualifiers>
      registry - the registry that owns this configuration object
    • qualifiedTypeOf

      public <ELEM extends AnnotatedElement & Type> QualifiedType<?> qualifiedTypeOf(ELEM type)
    • findFor

      public Set<Annotation> findFor(AnnotatedElement... elements)
      Returns the set of qualifying annotations on the given elements.
      elements - the annotated elements. Null elements are ignored.
      the set of qualifying annotations on the given elements.
    • createCopy

      public Qualifiers 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 interface JdbiConfig<Qualifiers>
      a copy of this configuration object.