Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractServiceInfo.Builder<B extends AbstractServiceInfo.Builder<B,T>,T extends ServiceInfo>
java.lang.Object
io.helidon.pico.api.AbstractServiceInfoBasics.Builder<B,T>
io.helidon.pico.api.AbstractServiceInfo.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
Builder<B,,T> ServiceInfo,ServiceInfoBasics,Supplier<T>
- Direct Known Subclasses:
DefaultServiceInfo.Builder
- Enclosing class:
AbstractServiceInfo
public abstract static class AbstractServiceInfo.Builder<B extends AbstractServiceInfo.Builder<B,T>,T extends ServiceInfo>
extends AbstractServiceInfoBasics.Builder<B,T>
implements ServiceInfo
Fluent API builder for
T.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SetField value forjava.util.Set<java.lang.String> externalContractsImplemented().Fields inherited from class io.helidon.pico.api.AbstractServiceInfoBasics.Builder
contractsImplemented, qualifiers, scopeTypeNamesFields 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.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 'externalContractsImplemented'.Setter for 'externalContractsImplemented'.The managed services external contracts / interfaces.Setter for 'externalContractsImplemented'.The name of the ascribed module, if known.moduleName(String val) Setter for 'moduleName'.moduleName(Optional<String> val) Setter for 'moduleName'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.ServiceInfoBasics, calling theAttributeVisitorfor each.Methods inherited from class io.helidon.pico.api.AbstractServiceInfoBasics.Builder
addContractsImplemented, addContractsImplemented, addQualifier, addQualifiers, addScopeTypeName, addScopeTypeNames, contractsImplemented, contractsImplemented, declaredRunLevel, declaredRunLevel, declaredRunLevel, declaredWeight, declaredWeight, declaredWeight, qualifiers, qualifiers, scopeTypeNames, scopeTypeNames, serviceTypeName, serviceTypeNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.pico.api.ServiceInfo
matchesMethods inherited from interface io.helidon.pico.api.ServiceInfoBasics
contractsImplemented, declaredRunLevel, declaredWeight, qualifiers, realizedRunLevel, realizedWeight, scopeTypeNames, serviceTypeName
-
Field Details
-
externalContractsImplemented
Field value forjava.util.Set<java.lang.String> externalContractsImplemented().
-
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
externalContractsImplemented
Description copied from interface:ServiceInfoThe managed services external contracts / interfaces. These should also be contained withinServiceInfoBasics.contractsImplemented(). External contracts are from other modules other than the module containing the implementation typically.- Specified by:
externalContractsImplementedin interfaceServiceInfo- Returns:
- the service external contracts implemented
- See Also:
-
activatorTypeName
Description copied from interface:ServiceInfoThe management agent (i.e., the activator) that is responsible for creating and activating - typically build-time created.- Specified by:
activatorTypeNamein interfaceServiceInfo- Returns:
- the activator type name
-
moduleName
Description copied from interface:ServiceInfoThe name of the ascribed module, if known.- Specified by:
moduleNamein interfaceServiceInfo- Returns:
- the module name
-
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
-
addExternalContractsImplemented
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
-
accept
Description copied from class:AbstractServiceInfoBasics.BuilderAccept and update from the provided value object.- Overrides:
acceptin classAbstractServiceInfoBasics.Builder<B extends AbstractServiceInfo.Builder<B,T>, T extends ServiceInfo> - Parameters:
val- the value object to copy from- Returns:
- this instance typed to correct type
-
visitAttributes
Description copied from class:AbstractServiceInfoBasics.BuilderVisits all attributes of io.helidon.pico.api.ServiceInfoBasics, calling theAttributeVisitorfor each.- Overrides:
visitAttributesin classAbstractServiceInfoBasics.Builder<B extends AbstractServiceInfo.Builder<B,T>, T extends ServiceInfo> - 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
-