|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.servlets.OwInitialisingContextListener
public abstract class OwInitialisingContextListener
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
Field Summary | |
---|---|
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 Summary | |
---|---|
OwInitialisingContextListener()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String STARTUP_ERROR_KEY
protected javax.servlet.ServletContext m_ServletContext
Constructor Detail |
---|
public OwInitialisingContextListener()
Method Detail |
---|
public void init(javax.servlet.ServletContext servletContext_p)
servletContext_p
- public void contextInitialized(javax.servlet.ServletContextEvent event_p)
contextInitialized
in interface javax.servlet.ServletContextListener
event_p
- ServletContextEventpublic void contextDestroyed(javax.servlet.ServletContextEvent arg0_p)
contextDestroyed
in interface javax.servlet.ServletContextListener
arg0_p
- ServletContextEventprotected abstract void applicationInitalize() throws OwConfigurationException, OwServerException
OwConfigurationException
OwServerException
public Object getApplicationAttribute(String key_p)
getApplicationAttribute
in interface OwBaseInitializer
key_p
-
Object
public Object setApplicationAttribute(String key_p, Object object_p)
setApplicationAttribute
in interface OwBaseInitializer
key_p
- object_p
- null removes the attribute
public String getBasePath()
getBasePath
in interface OwBaseInitializer
public String getInitParameter(String strParamName_p)
getInitParameter
in interface OwBaseInitializer
strParamName_p
- Name of the requested parameter
public InputStream getXMLConfigDoc(String strName_p) throws Exception
getXMLConfigDoc
in interface OwBaseInitializer
strName_p
- Name of the resource to look for
Exception
public URL getConfigURL(String strName_p) throws Exception
getConfigURL
in interface OwBaseInitializer
strName_p
- Name of the configuration to look for
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |