org.xwiki.container.portlet
Class PortletApplicationContext

java.lang.Object
  extended by org.xwiki.container.AbstractApplicationContext
      extended by 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


Constructor Summary
PortletApplicationContext(PortletContext portletContext, ComponentManager componentManager)
          Deprecated.  
 
Method Summary
 PortletContext getPortletContext()
          Deprecated.  
 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.
 
Methods inherited from class org.xwiki.container.AbstractApplicationContext
getPermanentDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletApplicationContext

public PortletApplicationContext(PortletContext portletContext,
                                 ComponentManager componentManager)
Deprecated. 
Method Detail

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