photospace.vfs
Class SlideContext

java.lang.Object
  extended byphotospace.vfs.SlideContext
All Implemented Interfaces:
org.springframework.context.ResourceLoaderAware, java.io.Serializable

public class SlideContext
extends java.lang.Object
implements java.io.Serializable, org.springframework.context.ResourceLoaderAware

SlideContext initializes the Slide domain. This is b/c the SimpleFileStore rootpath needs to be configured according to config available in the Spring context.

This implementation relies on the Slide behavior that once the Domain is initialized it can not be re-initialized. Since Spring loads before the Slide WebDavServlet, Spring wins.

See Also:
Serialized Form

Constructor Summary
SlideContext()
           
 
Method Summary
 void init()
           
 void setConfig(java.lang.String config)
           
 void setFilesystem(FileSystem filesystem)
           
 void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlideContext

public SlideContext()
Method Detail

init

public void init()
          throws java.lang.Exception
Throws:
java.lang.Exception

setFilesystem

public void setFilesystem(FileSystem filesystem)

setConfig

public void setConfig(java.lang.String config)

setResourceLoader

public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Specified by:
setResourceLoader in interface org.springframework.context.ResourceLoaderAware