Interface ClassInjectionInterrogatorContext
-
public interface ClassInjectionInterrogatorContextContext for theClassInjectionInterrogator.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.reflect.AnnotatedElementgetAnnotatedElement()Obtains theAnnotatedElement.java.lang.Class<?>getObjectClass()Obtains theClassof object for dependency injection.voidregisterInjectionPoint(java.lang.reflect.AnnotatedElement member)Registers a injection point.voidregisterPostConstruct(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
FieldorMethod.- Returns:
AnnotatedElement.
-
getObjectClass
java.lang.Class<?> getObjectClass()
Obtains theClassof object for dependency injection.- Returns:
Classof object for dependency injection.
-
registerInjectionPoint
void registerInjectionPoint(java.lang.reflect.AnnotatedElement member) throws java.lang.IllegalArgumentExceptionRegisters a injection point.
Should always be valid if passing in the return of
getAnnotatedElement().- Parameters:
member-FieldorMethodfor injection.- Throws:
java.lang.IllegalArgumentException- If invalid injection point type.
-
registerPostConstruct
void registerPostConstruct(java.lang.reflect.Method method)
Registers a post constructMethod.- Parameters:
method-Methodto be invoked after all dependencies are injected.
-
-