|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gisgraphy.webapp.listener.StartupListener
public class StartupListener
StartupListener class used to initialize and database settings and populate any application-wide drop-downs.
Keep in mind that this listener is executed outside of OpenSessionInViewFilter, so if you're using Hibernate you'll have to explicitly initialize all loaded data at the GenericDao or service level to avoid LazyInitializationException. Hibernate.initialize() works well for doing this.
Constructor Summary | |
---|---|
StartupListener()
|
Method Summary | |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Shutdown servlet context (currently a no-op method). |
void |
contextInitialized(javax.servlet.ServletContextEvent event)
|
static void |
setupContext(javax.servlet.ServletContext context)
This method uses the LookupManager to lookup available roles from the data layer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StartupListener()
Method Detail |
---|
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized
in interface javax.servlet.ServletContextListener
public static void setupContext(javax.servlet.ServletContext context)
context
- The servlet contextpublic void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
contextDestroyed
in interface javax.servlet.ServletContextListener
servletContextEvent
- The servlet context event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |