CompletedInitializationEvent class

Event published when the ApplicationContext has completed its initialization phase.

This event indicates that the context has finished setting up all necessary configurations, pod registrations, and is now fully operational.

It is typically fired after the context has been refreshed and all singleton pods have been instantiated.

Listeners may use this event to trigger actions that should only occur once the application is fully initialized, such as starting background tasks, initializing caches, or logging startup metrics.


/ ### Example:

class InitializationLogger implements ApplicationListener<CompletedInitializationEvent> {
  @override
  void onApplicationEvent(CompletedInitializationEvent event) {
    print("Application context initialization completed: ${event.getSource()}");
  }
}
Inheritance

Constructors

CompletedInitializationEvent(ApplicationContext source)
Event published when the ApplicationContext has completed its initialization phase.
CompletedInitializationEvent.withClock(ApplicationContext source, DateTime clock())
Event published when the ApplicationContext has completed its initialization phase.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

equalizedProperties() List<Object?>
Mixin-style contract for value-based equality, hashCode, and toString.
inherited
getApplicationContext() ApplicationContext
Returns the ApplicationContext that triggered this event.
inherited
getPackageName() String
Represents an abstraction for identifying the package that an object, resource, or service belongs to.
override
getSource() ApplicationContext
Returns the ApplicationContext that published this event.
inherited
getTimestamp() DateTime
Returns the timestamp of the event.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toStringOptions() ToStringOptions
inherited

Operators

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