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.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.