Class DelegatingApplicationListener
- java.lang.Object
- org.springframework.boot.context.config.DelegatingApplicationListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
,org.springframework.core.Ordered
public class DelegatingApplicationListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>, org.springframework.core.Ordered
ApplicationListener
that delegates to other listeners that are specified under a context.listener.classes environment property.
Constructor Summary
Constructors Constructor Description DelegatingApplicationListener()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
void
onApplicationEvent(org.springframework.context.ApplicationEvent event)
void
setOrder(int order)
Constructor Detail
DelegatingApplicationListener
public DelegatingApplicationListener()
Method Detail
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
setOrder
public void setOrder(int order)
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered