Interface Injectee
- All Known Implementing Classes:
- InjecteeImpl
public interface Injectee
An Injectee represents the point of injection. It can be used by injection resolvers to discover all of the information
 available about the entity being injected into.
- 
Method SummaryModifier and TypeMethodDescriptionClass<?>Returns the parent class for this injectee.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.If this Injectee is in a constructor this will return the constructor being injected into.Class<? extends Annotation>This method returns scope in which the parent class is registered.intIf this Injectee is a constructor or method parameter, this will return the index of the parameter.This is the set of required qualifiers for this injectee.This is the required type of the injectee.booleanThis method returnstrueif the injectee value is provided usingSupplier.booleanThis method returnstrueif this injection point is annotated with VOptional.booleanThis method returnstrueif the injectee value is provided usingProvider.
- 
Method Details- 
getRequiredTypeType getRequiredType()This is the required type of the injectee. The object that is injected into this point must be type-safe with regards to this type.- Returns:
- The type that this injectee is expecting. Any object injected into this injection point must be type-safe with regards to this type.
 
- 
getRequiredQualifiersSet<Annotation> getRequiredQualifiers()This is the set of required qualifiers for this injectee. All of these qualifiers must be present on the implementation class of the object that is injected into this injectee. Note that the fields of the annotation must also match.- Returns:
- Will not return null, but may return an empty set. The set of all qualifiers that must match.
 
- 
getPositionint getPosition()If this Injectee is a constructor or method parameter, this will return the index of the parameter. If thisInjecteeis a field, this will return-1.- Returns:
- the position of the parameter, or -1if this is a field.
 
- 
getInjecteeClassClass<?> getInjecteeClass()Returns the parent class for this injectee. This is the class of the object that will be injected into. This field may returnnullif this is from a service lookup.- Returns:
- The class of the object that will be injected into.
 
- 
getParentAnnotatedElement getParent()If this Injectee is in a constructor this will return the constructor being injected into. If this Injectee is in a method this will return the method being injected into. If this injectee represents a field, this will return the field being injected into. This injectee may be neither in which case this will returnnull.- Returns:
- The parent of the injectee, which may be null.
 
- 
isOptionalboolean isOptional()This method returnstrueif 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 returnnull.- Returns:
- trueif the injection point is annotated with VOptional,- falseotherwise.
 
- 
getInjecteeDescriptorForeignDescriptor 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.- Returns:
- DI specific foreign descriptor.
 
- 
getParentClassScopeClass<? extends Annotation> getParentClassScope()This method returns scope in which the parent class is registered.- Returns:
- scope annotation.
 
- 
isFactoryboolean isFactory()This method returnstrueif the injectee value is provided usingSupplier.- Returns:
- trueif the injectee is a factory.
 
- 
isProviderboolean isProvider()This method returnstrueif the injectee value is provided usingProvider.- Returns:
- trueif the injectee is a provider.
 
 
-