- All Superinterfaces:
ElementInfo
Describes a receiver for injection - identifies who/what is requesting an injection that needs to be satisfied.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.pico.api.ElementInfo
ElementInfo.Access, ElementInfo.ElementKind -
Field Summary
Fields inherited from interface io.helidon.pico.api.ElementInfo
CONSTRUCTOR -
Method Summary
Modifier and TypeMethodDescriptionThe base identifying name for this injection point.The service info criteria/dependency this is dependent upon.id()The identity (aka id) for this injection point.booleanTrue if the injection point is of typeList.booleanTrue if the injection point is of typeOptional.booleanTrue if the injection point is of type Provider (or Supplier).Methods inherited from interface io.helidon.pico.api.ElementInfo
access, annotations, elementArgs, elementKind, elementName, elementOffset, elementTypeName, qualifiers, serviceTypeName, staticDeclaration
-
Method Details
-
id
String id()The identity (aka id) for this injection point. The id should be unique for the service type it is contained within.This method will return the
baseIdentity()whenElementInfo.elementOffset()is null. If not null then the elemOffset is part of the returned identity.- Returns:
- the unique identity
-
baseIdentity
String baseIdentity()The base identifying name for this injection point. If the element represents a function, then the function arguments are encoded in its base identity.- Returns:
- the base identity of the element
-
listWrapped
boolean listWrapped()True if the injection point is of typeList.- Returns:
- true if list based receiver
-
optionalWrapped
boolean optionalWrapped()True if the injection point is of typeOptional.- Returns:
- true if optional based receiver
-
providerWrapped
boolean providerWrapped()True if the injection point is of type Provider (or Supplier).- Returns:
- true if provider based receiver
-
dependencyToServiceInfo
ServiceInfoCriteria dependencyToServiceInfo()The service info criteria/dependency this is dependent upon.- Returns:
- the service info criteria we are dependent upon
-