Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractActivationLogEntry.Builder<B extends AbstractActivationLogEntry.Builder<B,T>,T extends ActivationLogEntry>
java.lang.Object
io.helidon.pico.api.AbstractActivationLogEntry.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
Builder<B,,T> ActivationLogEntry,Supplier<T>
- Direct Known Subclasses:
DefaultActivationLogEntry.Builder
- Enclosing class:
AbstractActivationLogEntry
public abstract static class AbstractActivationLogEntry.Builder<B extends AbstractActivationLogEntry.Builder<B,T>,T extends ActivationLogEntry>
extends Object
implements ActivationLogEntry, Builder<B,T>
Fluent API builder for
T.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.pico.api.ActivationLogEntry
ActivationLogEntry.Interceptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.Optionally, when this log entry pertains to a service provider activation.Setter for 'activationResult'.Setter for 'activationResult'.error()Any observed error during activation.Setter for 'error'.Setter for 'error'.event()The event.Setter for 'event'.Optionally, the injection point that the event pertains to.Setter for 'injectionPoint'.Setter for 'injectionPoint'.message()Optionally, any special message being logged.Setter for 'message'.Setter for 'message'.Optionally, the managing service provider the event pertains to.serviceProvider(ServiceProvider<?> val) Setter for 'serviceProvider'.serviceProvider(Optional<ServiceProvider<?>> val) Setter for 'serviceProvider'.longthreadId()The thread id that the event occurred on.threadId(long val) Setter for 'threadId'.time()The time this event was generated.Setter for 'time'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.ActivationLogEntry, calling theAttributeVisitorfor each.
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
event
Description copied from interface:ActivationLogEntryThe event.- Specified by:
eventin interfaceActivationLogEntry- Returns:
- the event
-
message
Description copied from interface:ActivationLogEntryOptionally, any special message being logged.- Specified by:
messagein interfaceActivationLogEntry- Returns:
- the message
-
activationResult
Description copied from interface:ActivationLogEntryOptionally, when this log entry pertains to a service provider activation.- Specified by:
activationResultin interfaceActivationLogEntry- Returns:
- the activation result
-
serviceProvider
Description copied from interface:ActivationLogEntryOptionally, the managing service provider the event pertains to.- Specified by:
serviceProviderin interfaceActivationLogEntry- Returns:
- the managing service provider
-
injectionPoint
Description copied from interface:ActivationLogEntryOptionally, the injection point that the event pertains to.- Specified by:
injectionPointin interfaceActivationLogEntry- Returns:
- the injection point
-
time
Description copied from interface:ActivationLogEntryThe time this event was generated.- Specified by:
timein interfaceActivationLogEntry- Returns:
- the time of the event
-
error
Description copied from interface:ActivationLogEntryAny observed error during activation.- Specified by:
errorin interfaceActivationLogEntry- Returns:
- any observed error
-
threadId
public long threadId()Description copied from interface:ActivationLogEntryThe thread id that the event occurred on.- Specified by:
threadIdin interfaceActivationLogEntry- Returns:
- the thread id
-
event
Setter for 'event'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
message
Setter for 'message'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
message
Setter for 'message'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
activationResult
Setter for 'activationResult'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
activationResult
Setter for 'activationResult'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
serviceProvider
Setter for 'serviceProvider'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
serviceProvider
Setter for 'serviceProvider'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
injectionPoint
Setter for 'injectionPoint'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
injectionPoint
Setter for 'injectionPoint'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
time
Setter for 'time'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
error
Setter for 'error'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
error
Setter for 'error'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
threadId
Setter for 'threadId'.- 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.ActivationLogEntry, 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
-