- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
ActivationLogEntry.BuilderBase.ActivationLogEntryImpl
Log entry for lifecycle related events (i.e., activation startup and deactivation shutdown).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forActivationLogEntry.static classActivationLogEntry.BuilderBase<BUILDER extends ActivationLogEntry.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ActivationLogEntry> Fluent API builder base forActivationLogEntry. -
Method Summary
Modifier and TypeMethodDescriptionOptionally, when this log entry pertains to a service provider activation.static ActivationLogEntry.Builderbuilder()Create a new fluent API builder to customize configuration.static ActivationLogEntry.Builderbuilder(ActivationLogEntry instance) Create a new fluent API builder from an existing instance.static ActivationLogEntrycreate()Create a new instance with default values.error()Any observed error during activation.event()The event.Optionally, the injection point that the event pertains to.message()Optionally, any special message being logged.Optionally, the managing service provider the event pertains to.longthreadId()The thread id that the event occurred on.time()The time this event was generated.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
event
Event event()The event.- Returns:
- the event
-
message
Optionally, any special message being logged.- Returns:
- the message
-
activationResult
Optional<ActivationResult> activationResult()Optionally, when this log entry pertains to a service provider activation.- Returns:
- the activation result
-
serviceProvider
Optional<ServiceProvider<?>> serviceProvider()Optionally, the managing service provider the event pertains to.- Returns:
- the managing service provider
-
injectionPoint
Optional<InjectionPointInfo> injectionPoint()Optionally, the injection point that the event pertains to.- Returns:
- the injection point
-
time
Instant time()The time this event was generated.- Returns:
- the time of the event
-
error
Any observed error during activation.- Returns:
- any observed error
-
threadId
long threadId()The thread id that the event occurred on.- Returns:
- the thread id
-