Module io.helidon.inject.api
Package io.helidon.inject.api
Class InjectionPointInfo.BuilderBase<BUILDER extends InjectionPointInfo.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InjectionPointInfo>
java.lang.Object
io.helidon.inject.api.ElementInfo.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.inject.api.InjectionPointInfo.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
InjectionPointInfo.Builder
- Enclosing interface:
InjectionPointInfo
public abstract static class InjectionPointInfo.BuilderBase<BUILDER extends InjectionPointInfo.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InjectionPointInfo>
extends ElementInfo.BuilderBase<BUILDER,PROTOTYPE>
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
InjectionPointInfo.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class io.helidon.inject.api.ElementInfo.BuilderBase
ElementInfo.BuilderBase.ElementInfoImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe base identifying name for this injection point.baseIdentity(String baseIdentity) The base identifying name for this injection point.The service info criteria/dependency this is dependent upon.dependencyToServiceInfo(ServiceInfoCriteria dependencyToServiceInfo) The service info criteria/dependency this is dependent upon.The service info criteria/dependency this is dependent upon.dependencyToServiceInfo(Supplier<? extends ServiceInfoCriteria> supplier) The service info criteria/dependency this is dependent upon.from(InjectionPointInfo prototype) Update this builder from an existing prototype instance.from(InjectionPointInfo.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.id()The identity (aka id) for this injection point.The identity (aka id) for this injection point.ipName()Name of the field or argument we are injecting into.Name of the field or argument we are injecting into.ipType()Type of the field or argument we are injecting into.Type of the field or argument we are injecting into.ipType(Consumer<TypeName.Builder> consumer) Type of the field or argument we are injecting into.Type of the field or argument we are injecting into.booleanTrue if the injection point is of typeList.listWrapped(boolean listWrapped) True if the injection point is of typeList.booleanTrue if the injection point is of typeOptional.optionalWrapped(boolean optionalWrapped) True if the injection point is of typeOptional.protected voidHandles providers and decorators.booleanTrue if the injection point is of type Provider (or Supplier).providerWrapped(boolean providerWrapped) True if the injection point is of type Provider (or Supplier).toString()protected voidValidates required properties.Methods inherited from class io.helidon.inject.api.ElementInfo.BuilderBase
access, access, addAnnotation, addAnnotation, addAnnotations, addQualifier, addQualifier, addQualifiers, annotations, annotations, clearElementArgs, clearElementOffset, elementArgs, elementArgs, elementKind, elementKind, elementName, elementName, elementOffset, elementOffset, elementTypeName, elementTypeName, elementTypeName, elementTypeName, from, from, qualifiers, qualifiers, serviceTypeName, serviceTypeName, serviceTypeName, serviceTypeName, staticDeclaration, staticDeclarationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
ipName
Name of the field or argument we are injecting into. Best effort, if cannot be found, an indexed approach may be used (such asarg0).- Parameters:
ipName- name of the injection point field or argument- Returns:
- updated builder instance
- See Also:
-
ipType
Type of the field or argument we are injecting into.- Parameters:
ipType- type of the field or argument, including generic type declarations- Returns:
- updated builder instance
- See Also:
-
ipType
Type of the field or argument we are injecting into.- Parameters:
consumer- consumer of builder for type of the field or argument, including generic type declarations- Returns:
- updated builder instance
- See Also:
-
ipType
Type of the field or argument we are injecting into.- Parameters:
supplier- supplier of type of the field or argument, including generic type declarations- Returns:
- updated builder instance
- See Also:
-
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.BuilderBase.elementOffset()is null. If not null then the elemOffset is part of the returned identity.- Parameters:
id- the unique identity- Returns:
- updated builder instance
- See Also:
-
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.- Parameters:
baseIdentity- the base identity of the element- Returns:
- updated builder instance
- See Also:
-
listWrapped
True if the injection point is of typeList.- Parameters:
listWrapped- true if list based receiver- Returns:
- updated builder instance
- See Also:
-
optionalWrapped
True if the injection point is of typeOptional.- Parameters:
optionalWrapped- true if optional based receiver- Returns:
- updated builder instance
- See Also:
-
providerWrapped
True if the injection point is of type Provider (or Supplier).- Parameters:
providerWrapped- true if provider based receiver- Returns:
- updated builder instance
- See Also:
-
dependencyToServiceInfo
The service info criteria/dependency this is dependent upon.- Parameters:
dependencyToServiceInfo- the service info criteria we are dependent upon- Returns:
- updated builder instance
- See Also:
-
dependencyToServiceInfo
The service info criteria/dependency this is dependent upon.- Parameters:
consumer- consumer of builder for the service info criteria we are dependent upon- Returns:
- updated builder instance
- See Also:
-
dependencyToServiceInfo
The service info criteria/dependency this is dependent upon.- Parameters:
supplier- supplier of the service info criteria we are dependent upon- Returns:
- updated builder instance
- See Also:
-
ipName
Name of the field or argument we are injecting into. Best effort, if cannot be found, an indexed approach may be used (such asarg0).- Returns:
- the ip name
-
ipType
Type of the field or argument we are injecting into.- Returns:
- the ip type
-
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.BuilderBase.elementOffset()is null. If not null then the elemOffset is part of the returned identity.- Returns:
- the id
-
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
-
listWrapped
public boolean listWrapped()True if the injection point is of typeList.- Returns:
- the list wrapped
-
optionalWrapped
public boolean optionalWrapped()True if the injection point is of typeOptional.- Returns:
- the optional wrapped
-
providerWrapped
public boolean providerWrapped()True if the injection point is of type Provider (or Supplier).- Returns:
- the provider wrapped
-
dependencyToServiceInfo
The service info criteria/dependency this is dependent upon.- Returns:
- the dependency to service info
-
toString
- Overrides:
toStringin classElementInfo.BuilderBase<BUILDER extends InjectionPointInfo.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends InjectionPointInfo>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classElementInfo.BuilderBase<BUILDER extends InjectionPointInfo.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends InjectionPointInfo>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classElementInfo.BuilderBase<BUILDER extends InjectionPointInfo.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends InjectionPointInfo>
-