|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.clay.config.ClayConfigureListener
public class ClayConfigureListener
This context listener is responsible for loading the clay
configuration files on application startup. It is registered
in our tag library descriptor, so no further registration is
required. The configuration files are defined by a context
initialization parameter named Globals.CLAY_CONFIG_FILES
.
After the data is loaded, it will be accessible using the factory class
ConfigBeanFactory
Constructor Summary | |
---|---|
ClayConfigureListener()
|
Method Summary | |
---|---|
void |
contextDestroyed(ServletContextEvent event)
Tear down the factories and clean house. |
void |
contextInitialized(ServletContextEvent event)
Loads the configuration files on startup into an instance of ComponentConfigBean . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClayConfigureListener()
Method Detail |
---|
public void contextInitialized(ServletContextEvent event)
Loads the configuration files on startup into an instance of
ComponentConfigBean
.
and registers it with the factory ConfigBeanFactory
. The HTML template style of
Clay
configuration bean
TemplateConfigBean
and the XML template style of configuration
bean is TemplateComponentConfigBean
. The are all registered
with the factory ConfigBeanFactory
. All configuration bean pools implement the
ConfigBean
interface.
contextInitialized
in interface ServletContextListener
event
- servlet contextServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)
public void contextDestroyed(ServletContextEvent event)
Tear down the factories and clean house.
contextDestroyed
in interface ServletContextListener
event
- servlet contextServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |