Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractServiceInfoBasics.Builder<B extends AbstractServiceInfoBasics.Builder<B,T>,T extends ServiceInfoBasics>
java.lang.Object
io.helidon.pico.api.AbstractServiceInfoBasics.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
Builder<B,,T> ServiceInfoBasics,Supplier<T>
- Direct Known Subclasses:
AbstractServiceInfo.Builder,DefaultServiceInfoBasics.Builder
- Enclosing class:
AbstractServiceInfoBasics
public abstract static class AbstractServiceInfoBasics.Builder<B extends AbstractServiceInfoBasics.Builder<B,T>,T extends ServiceInfoBasics>
extends Object
implements ServiceInfoBasics, 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<io.helidon.pico.api.QualifierAndValue> qualifiers().protected final SetField value forjava.util.Set<java.lang.String> scopeTypeNames().Fields inherited from interface io.helidon.pico.api.ServiceInfoBasics
DEFAULT_WEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.Setter for 'contractsImplemented'.Setter for 'contractsImplemented'.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 optionalRunLevelascribed to the service.declaredRunLevel(Integer val) Setter for 'declaredRunLevel'.declaredRunLevel(Optional<Integer> val) Setter for 'declaredRunLevel'.Weight that was declared on the type itself.declaredWeight(Double val) Setter for 'declaredWeight'.declaredWeight(Optional<Double> val) Setter for 'declaredWeight'.The managed service assigned Qualifier's.Setter for 'qualifiers'.The managed service assigned Scope's.scopeTypeNames(Collection<String> val) Setter for 'scopeTypeNames'.The managed service implementationClass.serviceTypeName(String val) Setter for 'serviceTypeName'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.ServiceInfoBasics, calling theAttributeVisitorfor each.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.ServiceInfoBasics
realizedRunLevel, realizedWeight
-
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().
-
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
serviceTypeName
Description copied from interface:ServiceInfoBasicsThe managed service implementationClass.- Specified by:
serviceTypeNamein interfaceServiceInfoBasics- Returns:
- the service type name
-
scopeTypeNames
Description copied from interface:ServiceInfoBasicsThe managed service assigned Scope's.- Specified by:
scopeTypeNamesin interfaceServiceInfoBasics- Returns:
- the service scope type name
-
qualifiers
Description copied from interface:ServiceInfoBasicsThe managed service assigned Qualifier's.- Specified by:
qualifiersin interfaceServiceInfoBasics- Returns:
- the service qualifiers
-
contractsImplemented
Description copied from interface:ServiceInfoBasicsThe managed services advertised types (i.e., typically its interfaces).- Specified by:
contractsImplementedin interfaceServiceInfoBasics- Returns:
- the service contracts implemented
- See Also:
-
declaredRunLevel
Description copied from interface:ServiceInfoBasicsThe optionalRunLevelascribed to the service.- Specified by:
declaredRunLevelin interfaceServiceInfoBasics- Returns:
- the service's run level
- See Also:
-
declaredWeight
Description copied from interface:ServiceInfoBasicsWeight that was declared on the type itself.- Specified by:
declaredWeightin interfaceServiceInfoBasics- Returns:
- the declared weight
- See Also:
-
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
-
addContractsImplemented
Setter for 'contractsImplemented'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
declaredRunLevel
Setter for 'declaredRunLevel'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
declaredRunLevel
Setter for 'declaredRunLevel'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
declaredWeight
Setter for 'declaredWeight'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
declaredWeight
Setter for 'declaredWeight'.- 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.ServiceInfoBasics, 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
-