public interface InjectionPoint extends Serializable
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
getAttribute(Class<A> atype)
Return the attribute of type A that is applied to the injection point.
|
Collection<Annotation> |
getAttributes() |
Class<?> |
getErasedType() |
Member |
getMember()
Return the Member that produced this injection point.
|
Annotation |
getQualifier()
Return the qualifier annotation added to the injection point.
|
Type |
getType()
Return the type required to satisfy the injection point.
|
boolean |
isNullable() |
Type getType()
@Nullable Annotation getQualifier()
Qualifier
. If the injection point is not qualified, this will
return null.@Nullable <A extends Annotation> A getAttribute(Class<A> atype)
A
, then null is
returned.atype
- Attribute annotation type. It must be annotated with Attribute
.NullPointerException
- if atype is null@Nonnull Collection<Annotation> getAttributes()
@Nullable Member getMember()
boolean isNullable()
Copyright © 2016 GroupLens Research. All rights reserved.