org.springframework.extensions.surf
Class ThreadLocalPreviewContext

java.lang.Object
  extended by org.springframework.extensions.webscripts.PreviewContext
      extended by org.springframework.extensions.surf.ThreadLocalPreviewContext

public class ThreadLocalPreviewContext
extends PreviewContext

A thread local sandbox context implementation that is responsible for holding the value of the sandbox context for the current thread. It supplies a static instance getter that can be used directly to return the current SandboxContext object.

Author:
muzquiano

Field Summary
 
Fields inherited from class org.springframework.extensions.webscripts.PreviewContext
DEFAULT_STORE_ID
 
Constructor Summary
ThreadLocalPreviewContext(String storeId, String webappId)
          Override the default constructor to set the SandboxContext value for the current thread
 
Method Summary
static ThreadLocalPreviewContext getSandboxContext()
          Instance getter to return the SandboxContext for the current thread
 void release()
          Release resources
 
Methods inherited from class org.springframework.extensions.webscripts.PreviewContext
getStoreId, getWebappId, setStoreId, setWebappId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalPreviewContext

public ThreadLocalPreviewContext(String storeId,
                                 String webappId)
Override the default constructor to set the SandboxContext value for the current thread

Method Detail

getSandboxContext

public static ThreadLocalPreviewContext getSandboxContext()
Instance getter to return the SandboxContext for the current thread

Returns:
SandboxContext

release

public void release()
Release resources



Copyright © 2009 SpringSource, Inc. All Rights Reserved.