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 ServletContextListenerprotected void discoverModules(ModuleRegistry moduleRegistry, ClassLoader classLoader)
public void contextDestroyed(ServletContextEvent servletContextEvent)
contextDestroyed in interface ServletContextListenerpublic void sessionCreated(HttpSessionEvent httpSessionEvent)
sessionCreated in interface HttpSessionListenerpublic void sessionDestroyed(HttpSessionEvent httpSessionEvent)
sessionDestroyed in interface HttpSessionListenerprotected void loadConfiguration()
throws ConfigurationException
ConfigurationExceptionpublic void setupCommonsConfiguration()
public void attributeAdded(ServletContextAttributeEvent servletContextAttributeEvent)
attributeAdded in interface ServletContextAttributeListenerpublic void attributeRemoved(ServletContextAttributeEvent servletContextAttributeEvent)
attributeRemoved in interface ServletContextAttributeListenerpublic void attributeReplaced(ServletContextAttributeEvent servletContextAttributeEvent)
attributeReplaced in interface ServletContextAttributeListener