Package org.jboss.weld.injection
Class EmptyInjectionPoint
- java.lang.Object
-
- org.jboss.weld.injection.EmptyInjectionPoint
-
- All Implemented Interfaces:
InjectionPoint
,Serializable
public class EmptyInjectionPoint extends Object implements InjectionPoint, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static InjectionPoint
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description protected
EmptyInjectionPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotated
getAnnotated()
Obtain an instance ofAnnotatedField
orAnnotatedParameter
, depending upon whether the injection point is an injected field or a constructor/method parameter.Bean<?>
getBean()
Get theBean
object representing the bean that defines the injection point.Member
getMember()
Get theField
object in the case of field injection, theMethod
object in the case of method parameter injection or theConstructor
object in the case of constructor parameter injection.Set<Annotation>
getQualifiers()
Get the required qualifiers of the injection point.Type
getType()
Get the required type of injection point.boolean
isDelegate()
Determines if the injection point is a decorator delegate injection point.boolean
isTransient()
Determines if the injection is a transient field.
-
-
-
Field Detail
-
INSTANCE
public static final InjectionPoint INSTANCE
-
-
Method Detail
-
getType
public Type getType()
Description copied from interface:InjectionPoint
Get the required type of injection point.- Specified by:
getType
in interfaceInjectionPoint
- Returns:
- the required type
-
getQualifiers
public Set<Annotation> getQualifiers()
Description copied from interface:InjectionPoint
Get the required qualifiers of the injection point.- Specified by:
getQualifiers
in interfaceInjectionPoint
- Returns:
- the required qualifiers
-
getBean
public Bean<?> getBean()
Description copied from interface:InjectionPoint
Get theBean
object representing the bean that defines the injection point. If the injection point does not belong to a bean, return a null value.- Specified by:
getBean
in interfaceInjectionPoint
- Returns:
- the
Bean
object representing bean that defines the injection point, of null if the injection point does not belong to a bean
-
getMember
public Member getMember()
Description copied from interface:InjectionPoint
Get theField
object in the case of field injection, theMethod
object in the case of method parameter injection or theConstructor
object in the case of constructor parameter injection.- Specified by:
getMember
in interfaceInjectionPoint
- Returns:
- the member
-
getAnnotated
public Annotated getAnnotated()
Description copied from interface:InjectionPoint
Obtain an instance ofAnnotatedField
orAnnotatedParameter
, depending upon whether the injection point is an injected field or a constructor/method parameter.- Specified by:
getAnnotated
in interfaceInjectionPoint
- Returns:
- an
AnnotatedField
orAnnotatedParameter
-
isDelegate
public boolean isDelegate()
Description copied from interface:InjectionPoint
Determines if the injection point is a decorator delegate injection point.- Specified by:
isDelegate
in interfaceInjectionPoint
- Returns:
true
if the injection point is a decorator delegate injection point, andfalse
otherwise
-
isTransient
public boolean isTransient()
Description copied from interface:InjectionPoint
Determines if the injection is a transient field.- Specified by:
isTransient
in interfaceInjectionPoint
- Returns:
true
if the injection point is a transient field, andfalse
otherwise
-
-