org.xwiki.container
Interface ApplicationContext

All Known Implementing Classes:
AbstractApplicationContext

Deprecated. starting with 3.5M1, use the notion of Environment instead

@Deprecated
public interface ApplicationContext

Version:
$Id: e184eaa97eca27a6924747dd1921946d2c0d3f51 $

Method Summary
 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


Copyright © 2004–2014 XWiki. All rights reserved.