|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.isdc.wro.http.WroServletContextListener
public class WroServletContextListener
A listener which loads wroConfiguration and stores it in servletContext. If you want to have multiple listeners,
extend this class and override the getListenerName()
to provide a unique non-empty
name (defaulted to "default").
Constructor Summary | |
---|---|
WroServletContextListener()
|
Method Summary | |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
|
void |
contextInitialized(javax.servlet.ServletContextEvent event)
|
protected String |
getListenerName()
|
protected WroConfiguration |
newConfiguration()
Create the ContextLoader to use. |
protected WroManagerFactory |
newManagerFactory()
|
void |
setConfiguration(WroConfiguration configuration)
Set the configuration to be initialized by this listener. |
void |
setManagerFactory(WroManagerFactory managerFactory)
Set the manager factory to be initialized by this listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WroServletContextListener()
Method Detail |
---|
public final void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized
in interface javax.servlet.ServletContextListener
protected WroConfiguration newConfiguration()
protected WroManagerFactory newManagerFactory()
WroManagerFactory
.public final void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
contextDestroyed
in interface javax.servlet.ServletContextListener
public final void setManagerFactory(WroManagerFactory managerFactory)
managerFactory
- a not null manager instance.protected String getListenerName()
public final void setConfiguration(WroConfiguration configuration)
configuration
- a not null configuration instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |