Module io.helidon.inject.api
Package io.helidon.inject.spi
Class InjectionPlan.BuilderBase<BUILDER extends InjectionPlan.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InjectionPlan>
java.lang.Object
io.helidon.inject.spi.InjectionPlan.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:
InjectionPlan.Builder
- Enclosing interface:
InjectionPlan
public abstract static class InjectionPlan.BuilderBase<BUILDER extends InjectionPlan.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InjectionPlan>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
InjectionPlan.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddInjectionPointQualifiedServiceProvider(ServiceProvider<?> injectionPointQualifiedServiceProvider) The list of service providers that are qualified to satisfy the given injection point for this service provider.addInjectionPointQualifiedServiceProviders(List<ServiceProvider<?>> injectionPointQualifiedServiceProviders) The list of service providers that are qualified to satisfy the given injection point for this service provider.Clear existing value of this property.from(InjectionPlan prototype) Update this builder from an existing prototype instance.from(InjectionPlan.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.The injection point info for this element, which will also include its identity information.injectionPointInfo(InjectionPointInfo injectionPointInfo) The injection point info for this element, which will also include its identity information.injectionPointInfo(Consumer<InjectionPointInfo.Builder> consumer) The injection point info for this element, which will also include its identity information.injectionPointInfo(Supplier<? extends InjectionPointInfo> supplier) The injection point info for this element, which will also include its identity information.List<ServiceProvider<?>> The list of service providers that are qualified to satisfy the given injection point for this service provider.injectionPointQualifiedServiceProviders(List<ServiceProvider<?>> injectionPointQualifiedServiceProviders) The list of service providers that are qualified to satisfy the given injection point for this service provider.protected voidHandles providers and decorators.resolved()The resolved value, set only ifwasResolved().The resolved value, set only ifwasResolved().The service provider this plan pertains to.serviceProvider(ServiceProvider<?> serviceProvider) The service provider this plan pertains to.toString()protected voidValidates required properties.booleanFlag indicating whether resolution occurred.wasResolved(boolean wasResolved) Flag indicating whether resolution occurred.Methods 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
-
serviceProvider
The service provider this plan pertains to.- Parameters:
serviceProvider- the service provider this plan pertains to- Returns:
- updated builder instance
- See Also:
-
injectionPointInfo
The injection point info for this element, which will also include its identity information.- Parameters:
injectionPointInfo- the injection point info for this element- Returns:
- updated builder instance
- See Also:
-
injectionPointInfo
The injection point info for this element, which will also include its identity information.- Parameters:
consumer- consumer of builder for the injection point info for this element- Returns:
- updated builder instance
- See Also:
-
injectionPointInfo
The injection point info for this element, which will also include its identity information.- Parameters:
supplier- supplier of the injection point info for this element- Returns:
- updated builder instance
- See Also:
-
injectionPointQualifiedServiceProviders
public BUILDER injectionPointQualifiedServiceProviders(List<ServiceProvider<?>> injectionPointQualifiedServiceProviders) The list of service providers that are qualified to satisfy the given injection point for this service provider.- Parameters:
injectionPointQualifiedServiceProviders- the qualified service providers for this injection point- Returns:
- updated builder instance
- See Also:
-
addInjectionPointQualifiedServiceProviders
public BUILDER addInjectionPointQualifiedServiceProviders(List<ServiceProvider<?>> injectionPointQualifiedServiceProviders) The list of service providers that are qualified to satisfy the given injection point for this service provider.- Parameters:
injectionPointQualifiedServiceProviders- the qualified service providers for this injection point- Returns:
- updated builder instance
- See Also:
-
addInjectionPointQualifiedServiceProvider
public BUILDER addInjectionPointQualifiedServiceProvider(ServiceProvider<?> injectionPointQualifiedServiceProvider) The list of service providers that are qualified to satisfy the given injection point for this service provider.- Parameters:
injectionPointQualifiedServiceProvider- the qualified service providers for this injection point- Returns:
- updated builder instance
- See Also:
-
wasResolved
Flag indicating whether resolution occurred.- Parameters:
wasResolved- true if resolution occurred- Returns:
- updated builder instance
- See Also:
-
clearResolved
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
resolved
The resolved value, set only ifwasResolved().- Parameters:
resolved- any resolved value- Returns:
- updated builder instance
- See Also:
-
serviceProvider
The service provider this plan pertains to.- Returns:
- the service provider
-
injectionPointInfo
The injection point info for this element, which will also include its identity information.- Returns:
- the injection point info
-
injectionPointQualifiedServiceProviders
The list of service providers that are qualified to satisfy the given injection point for this service provider.- Returns:
- the injection point qualified service providers
-
wasResolved
public boolean wasResolved()Flag indicating whether resolution occurred.- Returns:
- the was resolved
-
resolved
The resolved value, set only ifwasResolved().- Returns:
- the resolved
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-