Class QualifierConfig

java.lang.Object
io.helidon.inject.maven.plugin.QualifierConfig
All Implemented Interfaces:
Prototype.Api, Annotation, io.helidon.inject.api.Qualifier, Comparable<Annotation>

public class QualifierConfig extends Object implements io.helidon.inject.api.Qualifier
Used by ExternalModuleCreatorMojo, and here in this package due to maven requirements to be in the same package as the mojo. See https://maven.apache.org/guides/mini/guide-configuring-plugins.html#Mapping_Complex_Objects
  • Field Details

  • Constructor Details

    • QualifierConfig

      public QualifierConfig()
      Default constructor.
  • Method Details

    • qualifierTypeName

      public String qualifierTypeName()
    • setQualifierTypeName

      public void setQualifierTypeName(String val)
      Sets the qualifier type name.
      Parameters:
      val - the qualifier type name
    • typeName

      public TypeName typeName()
    • value

      public Optional<String> value()
    • getValue

      public Optional<String> getValue(String name)
    • values

      public Map<String,Object> values()
    • compareTo

      public int compareTo(Annotation o)
      Specified by:
      compareTo in interface Comparable<Annotation>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • setValue

      public void setValue(String val)
      Sets the qualifier value.
      Parameters:
      val - the qualifer value
    • objectValue

      default Optional<Object> objectValue()
      Value of the annotation as an object. The type can be either String, or any primitive type, or Annotation, or list of these.
      Returns:
      object value
    • objectValue

      default Optional<Object> objectValue(String property)
      Value of the annotation property as an object. The type can be either String, or any primitive type, or Annotation, or list of these.
      Returns:
      object value
    • stringValue

      default Optional<String> stringValue()
      Typed value of the property "value".
      Returns:
      value if present
    • stringValue

      default Optional<String> stringValue(String property)
      Typed value of a named property.
      Returns:
      value if present
    • stringValues

      default Optional<List<String>> stringValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • stringValues

      default Optional<List<String>> stringValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • intValue

      default Optional<Integer> intValue()
      Typed value of the property "value".
      Returns:
      value if present
    • intValue

      default Optional<Integer> intValue(String property)
      Typed value of a named property.
      Returns:
      value if present
    • intValues

      default Optional<List<Integer>> intValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • intValues

      default Optional<List<Integer>> intValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • longValue

      default Optional<Long> longValue()
      Typed value of the property "value".
      Returns:
      value if present
    • longValue

      default Optional<Long> longValue(String property)
      Typed value of a named property.
      Returns:
      value if present
    • longValues

      default Optional<List<Long>> longValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • longValues

      default Optional<List<Long>> longValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • booleanValue

      default Optional<Boolean> booleanValue()
      Typed value of the property "value".
      Returns:
      value if present
    • booleanValue

      default Optional<Boolean> booleanValue(String property)
      Typed value of a named property.
      Returns:
      value if present
    • booleanValues

      default Optional<List<Boolean>> booleanValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • booleanValues

      default Optional<List<Boolean>> booleanValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • byteValue

      default Optional<Byte> byteValue()
      Typed value of the property "value".
      Returns:
      value if present
    • byteValue

      default Optional<Byte> byteValue(String property)
      Typed value of a named property.
      Returns:
      value if present
    • byteValues

      default Optional<List<Byte>> byteValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • byteValues

      default Optional<List<Byte>> byteValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • charValue

      default Optional<Character> charValue()
      Typed value of the property "value".
      Returns:
      value if present
    • charValue

      default Optional<Character> charValue(String property)
      Typed value of a named property.
      Returns:
      value if present
    • charValues

      default Optional<List<Character>> charValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • charValues

      default Optional<List<Character>> charValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • shortValue

      default Optional<Short> shortValue()
      Typed value of the property "value".
      Returns:
      value if present
    • shortValue

      default Optional<Short> shortValue(String property)
      Typed value of a named property.
      Returns:
      value if present
    • shortValues

      default Optional<List<Short>> shortValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • shortValues

      default Optional<List<Short>> shortValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • floatValue

      default Optional<Float> floatValue()
      Typed value of the property "value".
      Returns:
      value if present
    • floatValue

      default Optional<Float> floatValue(String property)
      Typed value of a named property.
      Returns:
      value if present
    • floatValues

      default Optional<List<Float>> floatValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • floatValues

      default Optional<List<Float>> floatValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • doubleValue

      default Optional<Double> doubleValue()
      Typed value of the property "value".
      Returns:
      value if present
    • doubleValue

      default Optional<Double> doubleValue(String property)
      Typed value of a named property.
      Returns:
      value if present
    • doubleValues

      default Optional<List<Double>> doubleValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • doubleValues

      default Optional<List<Double>> doubleValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • classValue

      default Optional<Class<?>> classValue()
      Typed value of the property "value".
      Returns:
      value if present
    • classValue

      default Optional<Class<?>> classValue(String property)
      Typed value of a named property.
      Returns:
      value if present
    • classValues

      default Optional<List<Class<?>>> classValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • classValues

      default Optional<List<Class<?>>> classValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • typeValue

      default Optional<TypeName> typeValue()
      Typed value of the property "value". Alternative for classValue().
      Returns:
      value if present
    • typeValue

      default Optional<TypeName> typeValue(String property)
      Typed value of a named property. Alternative for classValue(String).
      Returns:
      value if present
    • typeValues

      default Optional<List<TypeName>> typeValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property. Alternative for classValues().
      Returns:
      list of defined values if present
    • typeValues

      default Optional<List<TypeName>> typeValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property. Alternative for classValues(String).
      Returns:
      list of defined values if present
    • annotationValue

      default Optional<Annotation> annotationValue()
      Typed value of the property "value".
      Returns:
      value if present
    • annotationValue

      default Optional<Annotation> annotationValue(String property)
      Typed value of a named property.
      Returns:
      value if present
    • annotationValues

      default Optional<List<Annotation>> annotationValues()
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • annotationValues

      default Optional<List<Annotation>> annotationValues(String property)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Returns:
      list of defined values if present
    • enumValue

      default <T extends Enum<T>> Optional<T> enumValue(Class<T> type)
      Typed value of the property "value".
      Type Parameters:
      T - type of the enumeration
      Parameters:
      type - class of the enumeration
      Returns:
      value if present
    • enumValue

      default <T extends Enum<T>> Optional<T> enumValue(String property, Class<T> type)
      Typed value of a named property.
      Type Parameters:
      T - type of the enumeration
      Parameters:
      type - class of the enumeration
      Returns:
      value if present
    • enumValues

      default <T extends Enum<T>> Optional<List<T>> enumValues(Class<T> type)
      Typed value of the property "value" that is defined as an array. This will also work for a single values property.
      Type Parameters:
      T - type of the enumeration
      Parameters:
      type - class of the enumeration
      Returns:
      list of defined values if present
    • enumValues

      default <T extends Enum<T>> Optional<List<T>> enumValues(String property, Class<T> type)
      Typed values of a property that is defined as an array. This will also work for a single values property.
      Type Parameters:
      T - type of the enumeration
      Parameters:
      type - class of the enumeration
      Returns:
      list of defined values if present