org.xwiki.container.portlet
Class PortletApplicationContext
java.lang.Object
org.xwiki.container.AbstractApplicationContext
org.xwiki.container.portlet.PortletApplicationContext
- All Implemented Interfaces:
- ApplicationContext
Deprecated. starting with 3.5M1, use the notion of Environment instead
@Deprecated
public class PortletApplicationContext
- extends AbstractApplicationContext
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletApplicationContext
public PortletApplicationContext(PortletContext portletContext,
ComponentManager componentManager)
- Deprecated.
getPortletContext
public PortletContext getPortletContext()
- Deprecated.
getResourceAsStream
public InputStream getResourceAsStream(String resourceName)
- Deprecated.
getResource
public URL getResource(String resourceName)
throws MalformedURLException
- Deprecated.
- Throws:
MalformedURLException
getTemporaryDirectory
public File getTemporaryDirectory()
- Deprecated.
- Description copied from interface:
ApplicationContext
- 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