public interface IOnApplicationStartup
PostConstruct
.
Furthermore objects constructed in the Bean life-cycle do not have context to the ServletContext
.Modifier and Type | Method and Description |
---|---|
void |
initEnd(org.springframework.context.ApplicationContext appContext,
javax.servlet.ServletContext servletContext)
Initialize immediately prior to the default initialization activities in the
SiteApplication The method is provided with any context information it may need like Spring Context of the Application & the Servlet Context. |
void |
initStart(org.springframework.context.ApplicationContext appContext,
javax.servlet.ServletContext servletContext)
Initialize immediately prior to the default initialization activities in the
SiteApplication The method is provided with any context information it may need like Spring Context of the Application & the Servlet Context. |
void initStart(org.springframework.context.ApplicationContext appContext, javax.servlet.ServletContext servletContext) throws Exception
SiteApplication
appContext
- as ApplicationContext
appContext
- as ServletContext
Exception
- (checked Exceptions will be trapped and logged but will not interfere with Application startup, however RuntimeException
s can disrupt startup routine)void initEnd(org.springframework.context.ApplicationContext appContext, javax.servlet.ServletContext servletContext) throws Exception
SiteApplication
Exception
- (checked Exceptions will be trapped and logged but will not interfere with Application startup, however RuntimeException
s can disrupt startup routine)Copyright © 2018. All rights reserved.