public interface Injectee
Modifier and Type | Method and Description |
---|---|
Class<?> |
getInjecteeClass()
Returns the parent class for this injectee.
|
ForeignDescriptor |
getInjecteeDescriptor()
This method returns foreign descriptor of the current injectee that means that the DI provider is able to store its
specific descriptor and that use it in the descriptor processing.
|
AnnotatedElement |
getParent()
If this Injectee is in a constructor this will return the constructor being injected into.
|
Class<? extends Annotation> |
getParentClassScope()
This method returns scope in which the parent class is registered.
|
int |
getPosition()
If this Injectee is a constructor or method parameter, this will return the index of the parameter.
|
Set<Annotation> |
getRequiredQualifiers()
This is the set of required qualifiers for this injectee.
|
Type |
getRequiredType()
This is the required type of the injectee.
|
boolean |
isFactory()
This method returns
true if the injectee value is provided using Supplier . |
boolean |
isOptional()
This method returns
true if this injection point is annotated with VOptional. |
boolean |
isProvider()
This method returns
true if the injectee value is provided using Provider . |
Type getRequiredType()
Set<Annotation> getRequiredQualifiers()
null
, but may return an empty set. The set of all qualifiers that must match.int getPosition()
Injectee
is a field, this will return -1
.-1
if this is a field.Class<?> getInjecteeClass()
null
if this is from a service lookup.AnnotatedElement getParent()
null
.null
.boolean isOptional()
true
if this injection point is annotated with VOptional. In this case if there is no
definition for the injection point in the system it is allowable for the system to merely return null
.true
if the injection point is annotated with VOptional, false
otherwise.ForeignDescriptor getInjecteeDescriptor()
Class<? extends Annotation> getParentClassScope()
boolean isFactory()
true
if the injectee value is provided using Supplier
.true
if the injectee is a factory.boolean isProvider()
true
if the injectee value is provided using Provider
.true
if the injectee is a provider.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.