Class InjectionPoint<T extends java.lang.annotation.Annotation>


  • public class InjectionPoint<T extends java.lang.annotation.Annotation>
    extends java.lang.Object
    Injection point holds the information where to inject an instance.

    Author:
    Erhan Bagdemir
    • Constructor Summary

      Constructors 
      Constructor Description
      InjectionPoint​(java.lang.reflect.Field field, T annotation)
      Constructs a new InjectionPoint instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getAnnotation()
      Getter for the annotation which marks the injection point.
      java.lang.reflect.Field getField()
      Getter for the field instance where the injection happens.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InjectionPoint

        public InjectionPoint​(java.lang.reflect.Field field,
                              T annotation)
        Constructs a new InjectionPoint instance.

        Parameters:
        field - Field injection point.
        annotation - The annotation which the injection point is marked.
    • Method Detail

      • getField

        public java.lang.reflect.Field getField()
        Getter for the field instance where the injection happens.

        Returns:
        The field instance where the injection happens.
      • getAnnotation

        public T getAnnotation()
        Getter for the annotation which marks the injection point.

        Returns:
        The annotation which marks the injection point.