|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.xsnapshot.web.XSnapshotContextLoader
this file configures an instance of XSnapshotRegistry based on an xsnapshot properties file, and by default saves it in XSnapshotRegistrySingleton. it expects that there is a servlet context init-param named xsnapshot.properties which specifies the location of the properties file. This can either be a URL, a classpath pseudo-url (that starts with classpath:), or a location under the web application root (must start with / in that case)
Constructor Summary | |
XSnapshotContextLoader()
|
Method Summary | |
void |
contextDestroyed(ServletContextEvent arg0)
|
void |
contextInitialized(ServletContextEvent sce)
|
protected URL |
getConfigurationURL(ServletContextEvent sce)
Obtains a URL pointing to the configuration xml file |
protected String |
getContextParameter()
returns the string "xsnapshot.properties" |
protected void |
handleRegistry(XSnapshotRegistry registry,
ServletContextEvent sce)
Called after the registry has been configured. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XSnapshotContextLoader()
Method Detail |
protected String getContextParameter()
public void contextInitialized(ServletContextEvent sce)
contextInitialized
in interface ServletContextListener
protected URL getConfigurationURL(ServletContextEvent sce) throws RuntimeException, MalformedURLException
RuntimeException
- if the input stream cannot be opened.
MalformedURLException
getContextParameter()
protected void handleRegistry(XSnapshotRegistry registry, ServletContextEvent sce)
registry
- sce
- public void contextDestroyed(ServletContextEvent arg0)
contextDestroyed
in interface ServletContextListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |