ApplicationPreparedEvent class

Published when the context is fully prepared, just before its beans are created.

From this event on, the listeners registered on the SpringApplication are also listeners of the context, so they receive the context's own events (ContextRefreshedEvent, ContextClosedEvent, ...). Only those listeners receive this event itself.

Spring (Java): ApplicationPreparedEvent.

Inheritance

Constructors

ApplicationPreparedEvent(SpringApplication application, List<String> args, ConfigurableApplicationContext applicationContext)
The event for application run with args, carrying applicationContext; published by SpringApplication.

Properties

applicationContext → ConfigurableApplicationContext
The prepared context; no bean is created yet.
final
args → List<String>
The arguments of the run, as main received them.
finalinherited
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
springApplication → SpringApplication
The application being started; the same object as source, with its type.
no setterinherited
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