org.xwiki.container
Interface ApplicationContext


public interface ApplicationContext


Method Summary
 java.net.URL getResource(java.lang.String resourceName)
           
 java.io.InputStream getResourceAsStream(java.lang.String resourceName)
           
 java.io.File getTemporaryDirectory()
          Gets the directory which the container must provide for storing temporary data.
 

Method Detail

getResourceAsStream

java.io.InputStream getResourceAsStream(java.lang.String resourceName)

getResource

java.net.URL getResource(java.lang.String resourceName)
                         throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getTemporaryDirectory

java.io.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


Copyright © 2004-2011 XWiki. All Rights Reserved.