public final class FieldInjectionPoint extends Object implements InjectionPoint, Serializable
Constructor and Description |
---|
FieldInjectionPoint(Field field)
Create an injection point wrapping the given field
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
<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() |
Field |
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.
|
int |
hashCode() |
boolean |
isNullable() |
String |
toString() |
public FieldInjectionPoint(@Nonnull Field field)
field
- The field to injectNullPointerException
- if field is nullpublic Type getType()
InjectionPoint
getType
in interface InjectionPoint
public Class<?> getErasedType()
getErasedType
in interface InjectionPoint
InjectionPoint.getType()
@Nullable public Annotation getQualifier()
InjectionPoint
Qualifier
. If the injection point is not qualified, this will
return null.getQualifier
in interface InjectionPoint
@Nullable public <A extends Annotation> A getAttribute(Class<A> atype)
InjectionPoint
A
, then null is
returned.getAttribute
in interface InjectionPoint
atype
- Attribute annotation type. It must be annotated with Attribute
.@Nonnull public Collection<Annotation> getAttributes()
getAttributes
in interface InjectionPoint
@Nonnull public Field getMember()
InjectionPoint
getMember
in interface InjectionPoint
public boolean isNullable()
isNullable
in interface InjectionPoint
Copyright © 2016 GroupLens Research. All rights reserved.