org.xwiki.container
Class AbstractApplicationContext

java.lang.Object
  extended by org.xwiki.container.AbstractApplicationContext
All Implemented Interfaces:
ApplicationContext

public abstract class AbstractApplicationContext
extends Object
implements ApplicationContext

Base class for ApplicationContext implementations.

Version:
$Id: ceb0e24978d2d08084229d07766823dbeddedd27 $

Constructor Summary
AbstractApplicationContext(org.xwiki.component.manager.ComponentManager componentManager)
           
 
Method Summary
 File getPermanentDirectory()
          Gets the root directory which the container must provide for storing persisting data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xwiki.container.ApplicationContext
getResource, getResourceAsStream, getTemporaryDirectory
 

Constructor Detail

AbstractApplicationContext

public AbstractApplicationContext(org.xwiki.component.manager.ComponentManager componentManager)
Parameters:
componentManager - use to lookup ConfigurationSource component. Can't directly get the ConfigurationSource because it depends on ApplicationContext to actually get the configuration
Method Detail

getPermanentDirectory

public File getPermanentDirectory()
Description copied from interface: ApplicationContext
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.

Specified by:
getPermanentDirectory in interface ApplicationContext
Returns:
a File object pointing to the root folder of the work directory


Copyright © 2004-2011 XWiki. All Rights Reserved.