public class ClayConfigureListener extends Object implements javax.servlet.ServletContextListener
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 and Description |
|---|
ClayConfigureListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event)
Tear down the factories and clean house.
|
void |
contextInitialized(javax.servlet.ServletContextEvent event)
Loads the configuration files on startup into an instance of
ComponentConfigBean. |
public void contextInitialized(javax.servlet.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 javax.servlet.ServletContextListenerevent - servlet contextServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)public void contextDestroyed(javax.servlet.ServletContextEvent event)
Tear down the factories and clean house.
contextDestroyed in interface javax.servlet.ServletContextListenerevent - servlet contextServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent)Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.