Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractServiceInfoCriteria.Builder<B extends AbstractServiceInfoCriteria.Builder<B,T>,T extends ServiceInfoCriteria>
java.lang.Object
io.helidon.pico.api.AbstractServiceInfoCriteria.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
Builder<B,,T> ServiceInfoCriteria,Supplier<T>
- Direct Known Subclasses:
DefaultServiceInfoCriteria.Builder
- Enclosing class:
AbstractServiceInfoCriteria
public abstract static class AbstractServiceInfoCriteria.Builder<B extends AbstractServiceInfoCriteria.Builder<B,T>,T extends ServiceInfoCriteria>
extends Object
implements ServiceInfoCriteria, Builder<B,T>
Fluent API builder for
T.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SetField value forjava.util.Set<java.lang.String> contractsImplemented().protected final SetField value forjava.util.Set<java.lang.String> externalContractsImplemented().protected final SetField value forjava.util.Set<io.helidon.pico.api.QualifierAndValue> qualifiers().protected final SetField value forjava.util.Set<java.lang.String> scopeTypeNames(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.The management agent (i.e., the activator) that is responsible for creating and activating - typically build-time created.activatorTypeName(String val) Setter for 'activatorTypeName'.activatorTypeName(Optional<String> val) Setter for 'activatorTypeName'.Setter for 'contractsImplemented'.Setter for 'contractsImplemented'.Setter for 'externalContractsImplemented'.Setter for 'externalContractsImplemented'.Setter for 'qualifiers'.Setter for 'qualifiers'.addScopeTypeName(String val) Setter for 'scopeTypeNames'.Setter for 'scopeTypeNames'.The managed services advertised types (i.e., typically its interfaces).Setter for 'contractsImplemented'.The managed services external contracts / interfaces.Setter for 'externalContractsImplemented'.booleanDetermines whether the non-proxied,Interceptedservices should be returned in any lookup operation.includeIntercepted(boolean val) Setter for 'includeIntercepted'.The name of the ascribed module, if known.moduleName(String val) Setter for 'moduleName'.moduleName(Optional<String> val) Setter for 'moduleName'.The managed service assigned Qualifier's.Setter for 'qualifiers'.runLevel()The optionalRunLevelascribed to the service.Setter for 'runLevel'.Setter for 'runLevel'.The managed service assigned Scope's.scopeTypeNames(Collection<String> val) Setter for 'scopeTypeNames'.The managed service implementation type name.serviceTypeName(String val) Setter for 'serviceTypeName'.serviceTypeName(Optional<String> val) Setter for 'serviceTypeName'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.ServiceInfoCriteria, calling theAttributeVisitorfor each.weight()Weight that was declared on the type itself.Setter for 'weight'.Setter for 'weight'.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.pico.api.ServiceInfoCriteria
matches, matchesContracts
-
Field Details
-
scopeTypeNames
Field value forjava.util.Set<java.lang.String> scopeTypeNames(). -
qualifiers
Field value forjava.util.Set<io.helidon.pico.api.QualifierAndValue> qualifiers(). -
contractsImplemented
Field value forjava.util.Set<java.lang.String> contractsImplemented(). -
externalContractsImplemented
Field value forjava.util.Set<java.lang.String> externalContractsImplemented().
-
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
serviceTypeName
Description copied from interface:ServiceInfoCriteriaThe managed service implementation type name.- Specified by:
serviceTypeNamein interfaceServiceInfoCriteria- Returns:
- the service type name
-
scopeTypeNames
Description copied from interface:ServiceInfoCriteriaThe managed service assigned Scope's.- Specified by:
scopeTypeNamesin interfaceServiceInfoCriteria- Returns:
- the service scope type name
-
qualifiers
Description copied from interface:ServiceInfoCriteriaThe managed service assigned Qualifier's.- Specified by:
qualifiersin interfaceServiceInfoCriteria- Returns:
- the service qualifiers
-
contractsImplemented
Description copied from interface:ServiceInfoCriteriaThe managed services advertised types (i.e., typically its interfaces).- Specified by:
contractsImplementedin interfaceServiceInfoCriteria- Returns:
- the service contracts implemented
- See Also:
-
runLevel
Description copied from interface:ServiceInfoCriteriaThe optionalRunLevelascribed to the service.- Specified by:
runLevelin interfaceServiceInfoCriteria- Returns:
- the service's run level
-
weight
Description copied from interface:ServiceInfoCriteriaWeight that was declared on the type itself.- Specified by:
weightin interfaceServiceInfoCriteria- Returns:
- the declared weight
-
externalContractsImplemented
Description copied from interface:ServiceInfoCriteriaThe managed services external contracts / interfaces. These should also be contained withinServiceInfoCriteria.contractsImplemented(). External contracts are from other modules other than the module containing the implementation typically.- Specified by:
externalContractsImplementedin interfaceServiceInfoCriteria- Returns:
- the service external contracts implemented
- See Also:
-
activatorTypeName
Description copied from interface:ServiceInfoCriteriaThe management agent (i.e., the activator) that is responsible for creating and activating - typically build-time created.- Specified by:
activatorTypeNamein interfaceServiceInfoCriteria- Returns:
- the activator type name
-
moduleName
Description copied from interface:ServiceInfoCriteriaThe name of the ascribed module, if known.- Specified by:
moduleNamein interfaceServiceInfoCriteria- Returns:
- the module name
-
includeIntercepted
public boolean includeIntercepted()Description copied from interface:ServiceInfoCriteriaDetermines 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.- Specified by:
includeInterceptedin interfaceServiceInfoCriteria- Returns:
- true if the non-proxied type intercepted services should be eligible
-
serviceTypeName
Setter for 'serviceTypeName'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
serviceTypeName
Setter for 'serviceTypeName'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
scopeTypeNames
Setter for 'scopeTypeNames'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addScopeTypeNames
Setter for 'scopeTypeNames'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addScopeTypeName
Setter for 'scopeTypeNames'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
qualifiers
Setter for 'qualifiers'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addQualifiers
Setter for 'qualifiers'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addQualifier
Setter for 'qualifiers'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
contractsImplemented
Setter for 'contractsImplemented'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addContractsImplemented
Setter for 'contractsImplemented'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addContractImplemented
Setter for 'contractsImplemented'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
runLevel
Setter for 'runLevel'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
runLevel
Setter for 'runLevel'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
weight
Setter for 'weight'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
weight
Setter for 'weight'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
externalContractsImplemented
Setter for 'externalContractsImplemented'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addExternalContractsImplemented
Setter for 'externalContractsImplemented'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addExternalContractImplemented
Setter for 'externalContractsImplemented'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
activatorTypeName
Setter for 'activatorTypeName'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
activatorTypeName
Setter for 'activatorTypeName'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
moduleName
Setter for 'moduleName'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
moduleName
Setter for 'moduleName'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
includeIntercepted
Setter for 'includeIntercepted'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
accept
Accept and update from the provided value object.- Parameters:
val- the value object to copy from- Returns:
- this instance typed to correct type
-
visitAttributes
Visits all attributes of io.helidon.pico.api.ServiceInfoCriteria, calling theAttributeVisitorfor each.- 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
-