Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractInjectionPointInfo.Builder<B extends AbstractInjectionPointInfo.Builder<B,T>,T extends InjectionPointInfo>
java.lang.Object
io.helidon.pico.api.AbstractElementInfo.Builder<B,T>
io.helidon.pico.api.AbstractInjectionPointInfo.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
Builder<B,,T> ElementInfo,InjectionPointInfo,Supplier<T>
- Direct Known Subclasses:
DefaultInjectionPointInfo.Builder
- Enclosing class:
AbstractInjectionPointInfo
public abstract static class AbstractInjectionPointInfo.Builder<B extends AbstractInjectionPointInfo.Builder<B,T>,T extends InjectionPointInfo>
extends AbstractElementInfo.Builder<B,T>
implements InjectionPointInfo
Fluent API builder for
T.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.pico.api.ElementInfo
ElementInfo.Access, ElementInfo.ElementKind -
Field Summary
Fields inherited from class io.helidon.pico.api.AbstractElementInfo.Builder
annotations, qualifiersFields inherited from interface io.helidon.pico.api.ElementInfo
CONSTRUCTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.The base identifying name for this injection point.baseIdentity(String val) Setter for 'baseIdentity'.The service info criteria/dependency this is dependent upon.Setter for 'dependencyToServiceInfo'.id()The identity (aka id) for this injection point.Setter for 'id'.booleanTrue if the injection point is of typeList.listWrapped(boolean val) Setter for 'listWrapped'.booleanTrue if the injection point is of typeOptional.optionalWrapped(boolean val) Setter for 'optionalWrapped'.booleanTrue if the injection point is of type Provider (or Supplier).providerWrapped(boolean val) Setter for 'providerWrapped'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.ElementInfo, calling theAttributeVisitorfor each.Methods inherited from class io.helidon.pico.api.AbstractElementInfo.Builder
access, access, addAnnotation, addAnnotations, addQualifier, addQualifiers, annotations, annotations, elementArgs, elementArgs, elementArgs, elementKind, elementKind, elementName, elementName, elementOffset, elementOffset, elementOffset, elementTypeName, elementTypeName, qualifiers, qualifiers, serviceTypeName, serviceTypeName, staticDeclaration, staticDeclarationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.pico.api.ElementInfo
access, annotations, elementArgs, elementKind, elementName, elementOffset, elementTypeName, qualifiers, serviceTypeName, staticDeclaration
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
id
Description copied from interface:InjectionPointInfoThe 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
InjectionPointInfo.baseIdentity()whenElementInfo.elementOffset()is null. If not null then the elemOffset is part of the returned identity.- Specified by:
idin interfaceInjectionPointInfo- Returns:
- the unique identity
-
baseIdentity
Description copied from interface:InjectionPointInfoThe base identifying name for this injection point. If the element represents a function, then the function arguments are encoded in its base identity.- Specified by:
baseIdentityin interfaceInjectionPointInfo- Returns:
- the base identity of the element
-
listWrapped
public boolean listWrapped()Description copied from interface:InjectionPointInfoTrue if the injection point is of typeList.- Specified by:
listWrappedin interfaceInjectionPointInfo- Returns:
- true if list based receiver
-
optionalWrapped
public boolean optionalWrapped()Description copied from interface:InjectionPointInfoTrue if the injection point is of typeOptional.- Specified by:
optionalWrappedin interfaceInjectionPointInfo- Returns:
- true if optional based receiver
-
providerWrapped
public boolean providerWrapped()Description copied from interface:InjectionPointInfoTrue if the injection point is of type Provider (or Supplier).- Specified by:
providerWrappedin interfaceInjectionPointInfo- Returns:
- true if provider based receiver
-
dependencyToServiceInfo
Description copied from interface:InjectionPointInfoThe service info criteria/dependency this is dependent upon.- Specified by:
dependencyToServiceInfoin interfaceInjectionPointInfo- Returns:
- the service info criteria we are dependent upon
-
id
Setter for 'id'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
baseIdentity
Setter for 'baseIdentity'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
listWrapped
Setter for 'listWrapped'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
optionalWrapped
Setter for 'optionalWrapped'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
providerWrapped
Setter for 'providerWrapped'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
dependencyToServiceInfo
Setter for 'dependencyToServiceInfo'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
accept
Description copied from class:AbstractElementInfo.BuilderAccept and update from the provided value object.- Overrides:
acceptin classAbstractElementInfo.Builder<B extends AbstractInjectionPointInfo.Builder<B,T>, T extends InjectionPointInfo> - Parameters:
val- the value object to copy from- Returns:
- this instance typed to correct type
-
visitAttributes
Description copied from class:AbstractElementInfo.BuilderVisits all attributes of io.helidon.pico.api.ElementInfo, calling theAttributeVisitorfor each.- Overrides:
visitAttributesin classAbstractElementInfo.Builder<B extends AbstractInjectionPointInfo.Builder<B,T>, T extends InjectionPointInfo> - Type Parameters:
T- type of the user defined context- Parameters:
visitor- the visitor called for each attributeuserDefinedCtx- any object you wish to pass to each visit call
-