Interface Property


public interface Property
Represents injectable property. Supported implementations:
  • fields
  • parameters
  • Method Details

    • getField

      default Option<Field> getField()
      Get associated field if present
      Returns:
      the associated field
    • getParameter

      default Option<Parameter> getParameter()
      Get associated parameter if present
      Returns:
      the associated parameter
    • getAnnotation

      <A extends Annotation> A getAnnotation(Class<A> annotation)
      Get the specific annotation
      Type Parameters:
      A - the annotation type
      Parameters:
      annotation - the type of annotation to search for
      Returns:
      annotation instance if found, otherwise null
    • getAnnotations

      Annotation[] getAnnotations()
      Get annotations assigned to the property
      Returns:
      the annotations of property
    • getParametrizedType

      Type getParametrizedType()
      Get the generic signature used by the property
      Returns:
      the parametrized type of property
    • getType

      Class<?> getType()
      Get a property type
      Returns:
      the type of property
    • getName

      String getName()
      Get property name
      Returns:
      the name of property