public abstract class OnContextRefreshedEventListener extends Object implements ApplicationListener<ContextRefreshedEvent>, ApplicationContextAware
ApplicationListener
which only listens for
ContextRefreshedEvent
and only responds to the first one.Constructor and Description |
---|
OnContextRefreshedEventListener() |
OnContextRefreshedEventListener(boolean handleOthers,
int limit) |
Modifier and Type | Method and Description |
---|---|
abstract void |
handleContextRefreshedEvent(ContextRefreshedEvent event) |
void |
onApplicationEvent(ContextRefreshedEvent event) |
void |
setApplicationContext(ApplicationContext applicationContext) |
public OnContextRefreshedEventListener()
public OnContextRefreshedEventListener(boolean handleOthers, int limit)
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public void onApplicationEvent(ContextRefreshedEvent event)
onApplicationEvent
in interface ApplicationListener<ContextRefreshedEvent>
public abstract void handleContextRefreshedEvent(ContextRefreshedEvent event)
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.