Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractCallingContext.Builder<B extends AbstractCallingContext.Builder<B,T>,T extends CallingContext>
java.lang.Object
io.helidon.pico.api.CallingContext
io.helidon.pico.api.AbstractCallingContext.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- Direct Known Subclasses:
DefaultCallingContext.Builder
- Enclosing class:
AbstractCallingContext
public abstract static class AbstractCallingContext.Builder<B extends AbstractCallingContext.Builder<B,T>,T extends CallingContext>
extends CallingContext
implements Builder<B,T>
Fluent API builder for
T.-
Field Summary
Fields inherited from class io.helidon.pico.api.CallingContext
DEBUG_HINT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.Only populated whenPicoServicesConfig.TAG_MODULE_NAMEis set.moduleName(String val) Setter for 'moduleName'.moduleName(Optional<String> val) Setter for 'moduleName'.The thread that created the calling context.threadName(String val) Setter for 'threadName'.trace()Only populated whenPicoServicesConfig.TAG_DEBUGis set.trace(StackTraceElement[] val) Setter for 'trace'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.CallingContext, calling theAttributeVisitorfor each.Methods inherited from class io.helidon.pico.api.CallingContext
globalCallingContext, toErrorMessage, toErrorMessage, toString
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
trace
Description copied from class:CallingContextOnly populated whenPicoServicesConfig.TAG_DEBUGis set.- Specified by:
tracein classCallingContext- Returns:
- the stack trace for who initialized
-
moduleName
Description copied from class:CallingContextOnly populated whenPicoServicesConfig.TAG_MODULE_NAMEis set.- Specified by:
moduleNamein classCallingContext- Returns:
- the module name
-
threadName
Description copied from class:CallingContextThe thread that created the calling context.- Specified by:
threadNamein classCallingContext- Returns:
- thread creating the calling context
-
trace
Setter for 'trace'.- 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
-
threadName
Setter for 'threadName'.- 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.CallingContext, 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
-