ContextStartedEvent class

Published after start() was called on a context and its lifecycle beans were started.

The context does not publish it during its first startup (that is ContextRefreshedEvent), only for an explicit start(), typically after a stop().

context.addListener<ContextStartedEvent>((_) => log.info('started'));
context.start();

Spring (Java):

@EventListener
void onStart(ContextStartedEvent event) { ... }
Inheritance

Constructors

ContextStartedEvent(ApplicationContext source)
Creates the event for the context source; contexts do this.

Properties

applicationContext → ApplicationContext
The context that raised the event (the same object as source, typed).
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → Object
The object that raised the event, usually the publishing bean (or the context, for the context's own events).
finalinherited
timestamp → DateTime
When the event was created (not when a listener receives it).
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited