org.springframework.extensions.surf
Class ThreadLocalPreviewContext
java.lang.Object
org.springframework.extensions.webscripts.PreviewContext
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadLocalPreviewContext
public ThreadLocalPreviewContext(String storeId,
String webappId)
- Override the default constructor to set the SandboxContext value for the current thread
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.