U - U is the annotation used to identify the injection targets.public abstract class InjectionResolver<U extends Annotation> extends Object implements InjectionResolverQuery
Inject
Injection targets are identified by the generic parameter and the constructor
of this class. Potential injection targets are fields and methods of the
injected type.| Constructor and Description |
|---|
InjectionResolver(Class<U> type)
Construct a resolver with a particular injection type
|
| Modifier and Type | Method and Description |
|---|---|
Method |
getSetterMethod(Method annotated,
U annotation)
Returns the setter method responsible for setting the resource identified by the
passed annotation on the passed annotated method.
|
boolean |
isOptional(AnnotatedElement annotated,
U annotation)
Returns true if the resolution of this injection identified by the
passed annotation instance is optional
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValuepublic final Class<U extends Annotation> type
public Method getSetterMethod(Method annotated, U annotation)
annotated - is the annotated Methodannotation - the annotation on the methodpublic boolean isOptional(AnnotatedElement annotated, U annotation)
Copyright © 2009-2015 Oracle Corporation. All Rights Reserved.