Module io.helidon.inject.api
Package io.helidon.inject.api
Class ServiceInfoBasics.BuilderBase<BUILDER extends ServiceInfoBasics.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ServiceInfoBasics>
java.lang.Object
io.helidon.inject.api.ServiceInfoBasics.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.Api,Prototype.Builder<BUILDER,,PROTOTYPE> ServiceInfoBasics
- Direct Known Subclasses:
ServiceInfo.BuilderBase,ServiceInfoBasics.Builder
- Enclosing interface:
ServiceInfoBasics
public abstract static class ServiceInfoBasics.BuilderBase<BUILDER extends ServiceInfoBasics.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ServiceInfoBasics>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>, ServiceInfoBasics
Fluent API builder base for
ServiceInfoBasics.-
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 interface io.helidon.inject.api.ServiceInfoBasics
ServiceInfoBasics.Builder, ServiceInfoBasics.BuilderBase<BUILDER extends ServiceInfoBasics.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ServiceInfoBasics> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDefault weight for any internal Injection service component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContractImplemented(TypeName contractImplemented) The managed services advertised types (i.e., typically its interfaces).addContractImplemented(Class<?> type) Add contract implemented.addContractImplemented(Consumer<TypeName.Builder> consumer) The managed services advertised types (i.e., typically its interfaces).addContractsImplemented(Set<? extends TypeName> contractsImplemented) The managed services advertised types (i.e., typically its interfaces).addQualifier(Qualifier qualifier) The managed service assigned Qualifier's.addQualifier(Consumer<Qualifier.Builder> consumer) The managed service assigned Qualifier's.addQualifiers(Set<? extends Qualifier> qualifiers) The managed service assigned Qualifier's.addScopeTypeName(TypeName scopeTypeName) The managed service assigned Scope's.addScopeTypeName(Consumer<TypeName.Builder> consumer) The managed service assigned Scope's.addScopeTypeNames(Set<? extends TypeName> scopeTypeNames) The managed service assigned Scope's.Clear existing value of this property.Clear existing value of this property.The managed services advertised types (i.e., typically its interfaces).contractsImplemented(Set<? extends TypeName> contractsImplemented) The managed services advertised types (i.e., typically its interfaces).The optionalRunLevelascribed to the service.declaredRunLevel(Integer declaredRunLevel) The optionalRunLevelascribed to the service.Weight that was declared on the type itself.declaredWeight(Double declaredWeight) Weight that was declared on the type itself.from(ServiceInfoBasics prototype) Update this builder from an existing prototype instance.from(ServiceInfoBasics.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and interceptors.The managed service assigned Qualifier's.qualifiers(Set<? extends Qualifier> qualifiers) The managed service assigned Qualifier's.default intThe realized run level will use the default run level if no run level was specified directly.default doubleThe realized weight will useWeighted.DEFAULT_WEIGHTif no weight was specified directly.The managed service assigned Scope's.scopeTypeNames(Set<? extends TypeName> scopeTypeNames) The managed service assigned Scope's.The managed service implementationClass.serviceTypeName(TypeName serviceTypeName) The managed service implementationClass.serviceTypeName(Class<?> type) The managed service implementation type name.serviceTypeName(Consumer<TypeName.Builder> consumer) The managed service implementationClass.toString()protected voidValidates required properties.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, resolveBuilder, self
-
Field Details
-
DEFAULT_INJECT_WEIGHT
static final double DEFAULT_INJECT_WEIGHTDefault weight for any internal Injection service component. It is defined to beWeighted.DEFAULT_WEIGHT- 1in order to allow any other service implementation to naturally have a higher weight (since it will use theDEFAULT_WEIGHTunless explicitly overridden.- See Also:
-
-
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
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and interceptors. -
validatePrototype
protected void validatePrototype()Validates required properties. -
serviceTypeName
The managed service implementation type name.- Parameters:
type- type of the service- Returns:
- updated builder instance
-
addContractImplemented
Add contract implemented.- Parameters:
type- type of the service- Returns:
- updated builder instance
-
serviceTypeName
The managed service implementationClass.- Parameters:
serviceTypeName- the service type name- Returns:
- updated builder instance
- See Also:
-
serviceTypeName
The managed service implementationClass.- Parameters:
consumer- consumer of builder for the service type name- Returns:
- updated builder instance
- See Also:
-
scopeTypeNames
The managed service assigned Scope's.- Parameters:
scopeTypeNames- the service scope type name- Returns:
- updated builder instance
- See Also:
-
addScopeTypeNames
The managed service assigned Scope's.- Parameters:
scopeTypeNames- the service scope type name- Returns:
- updated builder instance
- See Also:
-
addScopeTypeName
The managed service assigned Scope's.- Parameters:
scopeTypeName- the service scope type name- Returns:
- updated builder instance
- See Also:
-
addScopeTypeName
The managed service assigned Scope's.- Parameters:
consumer- the service scope type name- Returns:
- updated builder instance
- See Also:
-
qualifiers
The managed service assigned Qualifier's.- Parameters:
qualifiers- the service qualifiers- Returns:
- updated builder instance
- See Also:
-
addQualifiers
The managed service assigned Qualifier's.- Parameters:
qualifiers- the service qualifiers- Returns:
- updated builder instance
- See Also:
-
addQualifier
The managed service assigned Qualifier's.- Parameters:
qualifier- the service qualifiers- Returns:
- updated builder instance
- See Also:
-
addQualifier
The managed service assigned Qualifier's.- Parameters:
consumer- the service qualifiers- Returns:
- updated builder instance
- See Also:
-
contractsImplemented
The managed services advertised types (i.e., typically its interfaces).- Parameters:
contractsImplemented- the service contracts implemented- Returns:
- updated builder instance
- See Also:
-
addContractsImplemented
The managed services advertised types (i.e., typically its interfaces).- Parameters:
contractsImplemented- the service contracts implemented- Returns:
- updated builder instance
- See Also:
-
addContractImplemented
The managed services advertised types (i.e., typically its interfaces).- Parameters:
contractImplemented- the service contracts implemented- Returns:
- updated builder instance
- See Also:
-
addContractImplemented
The managed services advertised types (i.e., typically its interfaces).- Parameters:
consumer- the service contracts implemented- Returns:
- updated builder instance
- See Also:
-
clearDeclaredRunLevel
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
declaredRunLevel
The optionalRunLevelascribed to the service.- Parameters:
declaredRunLevel- the service's run level- Returns:
- updated builder instance
- See Also:
-
clearDeclaredWeight
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
declaredWeight
Weight that was declared on the type itself.- Parameters:
declaredWeight- the declared weight- Returns:
- updated builder instance
- See Also:
-
serviceTypeName
The managed service implementationClass.- Returns:
- the service type name
-
scopeTypeNames
The managed service assigned Scope's.- Returns:
- the scope type names
-
qualifiers
The managed service assigned Qualifier's.- Returns:
- the qualifiers
-
contractsImplemented
The managed services advertised types (i.e., typically its interfaces).- Returns:
- the contracts implemented
-
declaredRunLevel
The optionalRunLevelascribed to the service.- Returns:
- the declared run level
-
declaredWeight
Weight that was declared on the type itself.- Returns:
- the declared weight
-
toString
-
realizedRunLevel
default int realizedRunLevel()The realized run level will use the default run level if no run level was specified directly.- Returns:
- the realized run level
- See Also:
-
realizedWeight
default double realizedWeight()The realized weight will useWeighted.DEFAULT_WEIGHTif no weight was specified directly.- Returns:
- the realized weight
- See Also:
-