@Documented @Retention(value=RUNTIME) @Target(value={ANNOTATION_TYPE,METHOD}) @Adapter(value=ApplicationEventListener.class) @Indexed(value=ApplicationEventListener.class) @Inherited public @interface EventListener
An Adapter
advice annotation that allows listening for events by implementing the ApplicationEventListener
interface.
For example:
@EventListener
public void onStartup(StartupEvent startupEvent) {
}