org.xwiki.container
Interface ApplicationContext
- All Known Implementing Classes:
- AbstractApplicationContext
public interface ApplicationContext
getResourceAsStream
InputStream getResourceAsStream(String resourceName)
getResource
URL getResource(String resourceName)
throws MalformedURLException
- Throws:
MalformedURLException
getTemporaryDirectory
File getTemporaryDirectory()
- Gets the directory which the container must provide for storing temporary data. The contents of this directory
may be deleted between container restarts (temporary, as the name implies), so it is not a safe place to
store permanent/important data.
- Returns:
- a
File object pointing to a directory that the application can use for storing temporary files
getPermanentDirectory
File getPermanentDirectory()
- Gets the root directory which the container must provide for storing persisting data. The content of this
directory will remained unchanged after a restart of the container.
- Returns:
- a
File object pointing to the root folder of the work directory
Copyright © 2004-2011 XWiki. All Rights Reserved.