public abstract class OwInitialisingContextListener extends Object implements javax.servlet.ServletContextListener, OwBaseInitializer
Init listener that initializes the Alfresco Workdesk shared data.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.ServletContext |
m_ServletContext
servlet context reference for this session
|
static String |
STARTUP_ERROR_KEY
key used to write the startup errors (configuration) in the context, used to be displayed on the logon page
|
| Constructor and Description |
|---|
OwInitialisingContextListener() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
applicationInitalize()
init function for derived classes
|
void |
contextDestroyed(javax.servlet.ServletContextEvent arg0_p)
Notification that the servlet context is about to be shut down.
|
void |
contextInitialized(javax.servlet.ServletContextEvent event_p)
Notification that the web application initialization process is starting.
|
Object |
getApplicationAttribute(String key_p)
get a attribute from the application scope
|
String |
getBasePath()
get the base path to the application
|
URL |
getConfigURL(String strName_p)
loads a URL for a configuration either from local file, external file or from a JNDI context
|
String |
getInitParameter(String strParamName_p)
get a parameter from the web.xml config file
|
InputStream |
getXMLConfigDoc(String strName_p)
loads a XML Document either from local file, external file or from a JNDI context
|
void |
init(javax.servlet.ServletContext servletContext_p)
initialization
|
Object |
setApplicationAttribute(String key_p,
Object object_p)
get a attribute from the application scope
|
public static final String STARTUP_ERROR_KEY
protected javax.servlet.ServletContext m_ServletContext
public void init(javax.servlet.ServletContext servletContext_p)
servletContext_p - public void contextInitialized(javax.servlet.ServletContextEvent event_p)
contextInitialized in interface javax.servlet.ServletContextListenerevent_p - ServletContextEventpublic void contextDestroyed(javax.servlet.ServletContextEvent arg0_p)
contextDestroyed in interface javax.servlet.ServletContextListenerarg0_p - ServletContextEventprotected abstract void applicationInitalize()
throws OwConfigurationException,
OwServerException
public Object getApplicationAttribute(String key_p)
getApplicationAttribute in interface OwBaseInitializerkey_p - Objectpublic Object setApplicationAttribute(String key_p, Object object_p)
setApplicationAttribute in interface OwBaseInitializerkey_p - object_p - null removes the attributepublic String getBasePath()
getBasePath in interface OwBaseInitializerpublic String getInitParameter(String strParamName_p)
getInitParameter in interface OwBaseInitializerstrParamName_p - Name of the requested parameterpublic InputStream getXMLConfigDoc(String strName_p) throws Exception
getXMLConfigDoc in interface OwBaseInitializerstrName_p - Name of the resource to look forExceptionpublic URL getConfigURL(String strName_p) throws Exception
getConfigURL in interface OwBaseInitializerstrName_p - Name of the configuration to look forExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.