public class LifecycleController extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanNameAware
| Constructor and Description |
|---|
LifecycleController(LifecycleListener... lifecycleListeners) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLog()
Get any log messages generated during startup or shutdown
|
void |
onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event) |
void |
setApplicationContext(org.springframework.context.ApplicationContext ctx) |
void |
setBeanName(String beanName) |
void |
setForceStart(boolean forceStart)
Change how startup failures are handled
|
public LifecycleController(LifecycleListener... lifecycleListeners)
lifecycleListeners - listeners that will be notified of app state changespublic void setForceStart(boolean forceStart)
forceStart - true to report exceptions only or false to report and rethrowpublic void setApplicationContext(org.springframework.context.ApplicationContext ctx)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>public String getLog()
Copyright © 2005–2018 Alfresco Software. All rights reserved.