public class PortofinoListener extends Object implements ServletContextListener, HttpSessionListener, ServletContextAttributeListener
Modifier and Type | Field and Description |
---|---|
protected File |
applicationDirectory |
protected Configuration |
configuration |
static String |
copyright |
protected Configuration |
elementsConfiguration |
static org.slf4j.Logger |
logger |
protected ModuleRegistry |
moduleRegistry |
static String |
PORTOFINO_MESSAGES_FILE_NAME |
static String |
SEPARATOR |
protected ServerInfo |
serverInfo |
protected ServletContext |
servletContext |
Constructor and Description |
---|
PortofinoListener() |
Modifier and Type | Method and Description |
---|---|
void |
attributeAdded(ServletContextAttributeEvent servletContextAttributeEvent) |
void |
attributeRemoved(ServletContextAttributeEvent servletContextAttributeEvent) |
void |
attributeReplaced(ServletContextAttributeEvent servletContextAttributeEvent) |
void |
contextDestroyed(ServletContextEvent servletContextEvent) |
void |
contextInitialized(ServletContextEvent servletContextEvent) |
protected void |
discoverModules(ModuleRegistry moduleRegistry,
ClassLoader classLoader) |
protected void |
loadConfiguration() |
void |
sessionCreated(HttpSessionEvent httpSessionEvent) |
void |
sessionDestroyed(HttpSessionEvent httpSessionEvent) |
void |
setupCommonsConfiguration() |
public static final String copyright
public static final String SEPARATOR
public static final String PORTOFINO_MESSAGES_FILE_NAME
protected Configuration elementsConfiguration
protected Configuration configuration
protected File applicationDirectory
protected ServletContext servletContext
protected ServerInfo serverInfo
protected ModuleRegistry moduleRegistry
public static final org.slf4j.Logger logger
public void contextInitialized(ServletContextEvent servletContextEvent)
contextInitialized
in interface ServletContextListener
protected void discoverModules(ModuleRegistry moduleRegistry, ClassLoader classLoader)
public void contextDestroyed(ServletContextEvent servletContextEvent)
contextDestroyed
in interface ServletContextListener
public void sessionCreated(HttpSessionEvent httpSessionEvent)
sessionCreated
in interface HttpSessionListener
public void sessionDestroyed(HttpSessionEvent httpSessionEvent)
sessionDestroyed
in interface HttpSessionListener
protected void loadConfiguration() throws ConfigurationException
ConfigurationException
public void setupCommonsConfiguration()
public void attributeAdded(ServletContextAttributeEvent servletContextAttributeEvent)
attributeAdded
in interface ServletContextAttributeListener
public void attributeRemoved(ServletContextAttributeEvent servletContextAttributeEvent)
attributeRemoved
in interface ServletContextAttributeListener
public void attributeReplaced(ServletContextAttributeEvent servletContextAttributeEvent)
attributeReplaced
in interface ServletContextAttributeListener