Interface ClassInjectionInterrogatorContext
-
public interface ClassInjectionInterrogatorContext
Context for theClassInjectionInterrogator
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.reflect.AnnotatedElement
getAnnotatedElement()
Obtains theAnnotatedElement
.java.lang.Class<?>
getObjectClass()
Obtains theClass
of object for dependency injection.void
registerInjectionPoint(java.lang.reflect.AnnotatedElement member)
Registers a injection point.void
registerPostConstruct(java.lang.reflect.Method method)
Registers a post constructMethod
.
-
-
-
Method Detail
-
getAnnotatedElement
java.lang.reflect.AnnotatedElement getAnnotatedElement()
Obtains the
AnnotatedElement
.Typically this is either a
Field
orMethod
.- Returns:
AnnotatedElement
.
-
getObjectClass
java.lang.Class<?> getObjectClass()
Obtains theClass
of object for dependency injection.- Returns:
Class
of object for dependency injection.
-
registerInjectionPoint
void registerInjectionPoint(java.lang.reflect.AnnotatedElement member) throws java.lang.IllegalArgumentException
Registers a injection point.
Should always be valid if passing in the return of
getAnnotatedElement()
.- Parameters:
member
-Field
orMethod
for injection.- Throws:
java.lang.IllegalArgumentException
- If invalid injection point type.
-
registerPostConstruct
void registerPostConstruct(java.lang.reflect.Method method)
Registers a post constructMethod
.- Parameters:
method
-Method
to be invoked after all dependencies are injected.
-
-