Package io.ryos.rhino.sdk.data
Class InjectionPoint<T extends java.lang.annotation.Annotation>
- java.lang.Object
-
- io.ryos.rhino.sdk.data.InjectionPoint<T>
-
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 newInjectionPoint
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.
-
-
-
Constructor Detail
-
InjectionPoint
public InjectionPoint(java.lang.reflect.Field field, T annotation)
Constructs a newInjectionPoint
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.
-
-