Module io.helidon.inject.api
Package io.helidon.inject.api
Class ServiceInfoCriteria.BuilderBase<BUILDER extends ServiceInfoCriteria.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ServiceInfoCriteria>
java.lang.Object
io.helidon.inject.api.ServiceInfoCriteria.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:
ServiceInfoCriteria.Builder
- Enclosing interface:
ServiceInfoCriteria
public abstract static class ServiceInfoCriteria.BuilderBase<BUILDER extends ServiceInfoCriteria.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ServiceInfoCriteria>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
ServiceInfoCriteria.-
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 TypeMethodDescriptionThe management agent (i.e., the activator) that is responsible for creating and activating - typically build-time created.activatorTypeName(TypeName activatorTypeName) The management agent (i.e., the activator) that is responsible for creating and activating - typically build-time created.activatorTypeName(Consumer<TypeName.Builder> consumer) The management agent (i.e., the activator) that is responsible for creating and activating - typically build-time created.addContractImplemented(TypeName contractImplemented) The managed services advertised types (i.e., typically its interfaces).addContractImplemented(Class<?> contract) The managed services advertised types (i.e., typically its interfaces).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).addExternalContractImplemented(TypeName externalContractImplemented) The managed services external contracts / interfaces.The managed services external contracts / interfaces.addExternalContractsImplemented(Set<? extends TypeName> externalContractsImplemented) The managed services external contracts / 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.Clear existing value of this property.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 managed services external contracts / interfaces.externalContractsImplemented(Set<? extends TypeName> externalContractsImplemented) The managed services external contracts / interfaces.from(ServiceInfoCriteria prototype) Update this builder from an existing prototype instance.from(ServiceInfoCriteria.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.booleanDetermines whether the non-proxied,Interceptedservices should be returned in any lookup operation.includeIntercepted(boolean includeIntercepted) Determines whether the non-proxied,Interceptedservices should be returned in any lookup operation.The name of the ascribed module, if known.moduleName(String moduleName) The name of the ascribed module, if known.protected voidHandles providers and decorators.The managed service assigned Qualifier's.qualifiers(Set<? extends Qualifier> qualifiers) The managed service assigned Qualifier's.runLevel()The optionalRunLevelascribed to the service.runLevel(int runLevel) The optionalRunLevelascribed to the service.The managed service assigned Scope's.scopeTypeNames(Set<? extends TypeName> scopeTypeNames) The managed service assigned Scope's.The managed service implementation type name.serviceTypeName(TypeName serviceTypeName) The managed service implementation type name.serviceTypeName(Consumer<TypeName.Builder> consumer) The managed service implementation type name.toString()protected voidValidates required properties.weight()Weight that was declared on the type itself.weight(double weight) Weight that was declared on the type itself.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
-
addContractImplemented
The managed services advertised types (i.e., typically its interfaces).- Parameters:
contract- the service contracts implemented- Returns:
- updated builder instance
- See Also:
-
clearServiceTypeName
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
serviceTypeName
The managed service implementation type name.- Parameters:
serviceTypeName- the service type name- Returns:
- updated builder instance
- See Also:
-
serviceTypeName
The managed service implementation type name.- Parameters:
consumer- 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:
-
clearRunLevel
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
runLevel
The optionalRunLevelascribed to the service.- Parameters:
runLevel- the service's run level- Returns:
- updated builder instance
- See Also:
-
clearWeight
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
weight
Weight that was declared on the type itself.- Parameters:
weight- the declared weight- Returns:
- updated builder instance
- See Also:
-
externalContractsImplemented
The managed services external contracts / interfaces. These should also be contained withincontractsImplemented(). External contracts are from other modules other than the module containing the implementation typically.- Parameters:
externalContractsImplemented- the service external contracts implemented- Returns:
- updated builder instance
- See Also:
-
addExternalContractsImplemented
public BUILDER addExternalContractsImplemented(Set<? extends TypeName> externalContractsImplemented) The managed services external contracts / interfaces. These should also be contained withincontractsImplemented(). External contracts are from other modules other than the module containing the implementation typically.- Parameters:
externalContractsImplemented- the service external contracts implemented- Returns:
- updated builder instance
- See Also:
-
addExternalContractImplemented
The managed services external contracts / interfaces. These should also be contained withincontractsImplemented(). External contracts are from other modules other than the module containing the implementation typically.- Parameters:
externalContractImplemented- the service external contracts implemented- Returns:
- updated builder instance
- See Also:
-
addExternalContractImplemented
The managed services external contracts / interfaces. These should also be contained withincontractsImplemented(). External contracts are from other modules other than the module containing the implementation typically.- Parameters:
consumer- the service external contracts implemented- Returns:
- updated builder instance
- See Also:
-
clearActivatorTypeName
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
activatorTypeName
The management agent (i.e., the activator) that is responsible for creating and activating - typically build-time created.- Parameters:
activatorTypeName- the activator type name- Returns:
- updated builder instance
- See Also:
-
activatorTypeName
The management agent (i.e., the activator) that is responsible for creating and activating - typically build-time created.- Parameters:
consumer- the activator type name- Returns:
- updated builder instance
- See Also:
-
clearModuleName
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
moduleName
The name of the ascribed module, if known.- Parameters:
moduleName- the module name- Returns:
- updated builder instance
- See Also:
-
includeIntercepted
Determines whether the non-proxied,Interceptedservices should be returned in any lookup operation. If this option is disabled then only theInterceptor-generated service will be eligible to be returned and not the service being intercepted. The default value isfalse.- Parameters:
includeIntercepted- true if the non-proxied type intercepted services should be eligible- Returns:
- updated builder instance
- See Also:
-
serviceTypeName
The managed service implementation type name.- 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
- See Also:
-
runLevel
The optionalRunLevelascribed to the service.- Returns:
- the run level
-
weight
Weight that was declared on the type itself.- Returns:
- the weight
-
externalContractsImplemented
The managed services external contracts / interfaces. These should also be contained withincontractsImplemented(). External contracts are from other modules other than the module containing the implementation typically.- Returns:
- the external contracts implemented
- See Also:
-
activatorTypeName
The management agent (i.e., the activator) that is responsible for creating and activating - typically build-time created.- Returns:
- the activator type name
-
moduleName
The name of the ascribed module, if known.- Returns:
- the module name
-
includeIntercepted
public boolean includeIntercepted()Determines whether the non-proxied,Interceptedservices should be returned in any lookup operation. If this option is disabled then only theInterceptor-generated service will be eligible to be returned and not the service being intercepted. The default value isfalse.- Returns:
- the include intercepted
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-