Most implementations of SmartApplicationListener and GenericApplicationListener do not care about the source type so they implement supportsSourceType with return true.
Also, getOrder() is imposed by the contract and may have a default.
The rationale is that this interface is used in case multiple event types are supported and/or you want more fine grained control. Ideally, only the absolutely necessary methods should be implemented, leaving the same default as a regular ApplicationListener implementation.
Affects: 5.0.8
Issue Links:
#21723 SmartLifecycle should provide default methods
Stéphane Nicoll opened SPR-17163 and commented
Most implementations of
SmartApplicationListener
andGenericApplicationListener
do not care about the source type so they implementsupportsSourceType
withreturn true
.Also,
getOrder()
is imposed by the contract and may have a default.The rationale is that this interface is used in case multiple event types are supported and/or you want more fine grained control. Ideally, only the absolutely necessary methods should be implemented, leaving the same default as a regular
ApplicationListener
implementation.Affects: 5.0.8
Issue Links:
Referenced from: commits c437a0d
The text was updated successfully, but these errors were encountered: