Package org.xwiki.container
Interface ApplicationContext
-
- All Known Implementing Classes:
AbstractApplicationContext
@Deprecated(since="3.5M1") public interface ApplicationContext
Deprecated.use the notion ofEnvironment
instead- Version:
- $Id: 0538542144c462d739caca4cae4a30edadb8d0e2 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description File
getPermanentDirectory()
Deprecated.Gets the root directory which the container must provide for storing persisting data.URL
getResource(String resourceName)
Deprecated.InputStream
getResourceAsStream(String resourceName)
Deprecated.File
getTemporaryDirectory()
Deprecated.Gets the directory which the container must provide for storing temporary data.
-
-
-
Method Detail
-
getResourceAsStream
InputStream getResourceAsStream(String resourceName)
Deprecated.
-
getResource
URL getResource(String resourceName) throws MalformedURLException
Deprecated.- Throws:
MalformedURLException
-
getTemporaryDirectory
File getTemporaryDirectory()
Deprecated.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()
Deprecated.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
-
-