Class DelegatingApplicationListener
java.lang.Object
org.springframework.security.context.DelegatingApplicationListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
public final class DelegatingApplicationListener
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
Used for delegating to a number of SmartApplicationListener instances. This is useful
when needing to register an SmartApplicationListener with the ApplicationContext
programmatically.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(org.springframework.context.event.SmartApplicationListener smartApplicationListener) Adds a new SmartApplicationListener to use.void
onApplicationEvent
(org.springframework.context.ApplicationEvent event)
-
Constructor Details
-
DelegatingApplicationListener
public DelegatingApplicationListener()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-
addListener
public void addListener(org.springframework.context.event.SmartApplicationListener smartApplicationListener) Adds a new SmartApplicationListener to use.- Parameters:
smartApplicationListener
- the SmartApplicationListener to use. Cannot be null.
-