Apache CXF API

org.apache.cxf.jaxrs.ext.search.visitor
Class ThreadLocalVisitorState<T>

java.lang.Object
  extended by org.apache.cxf.jaxrs.ext.search.visitor.ThreadLocalVisitorState<T>
All Implemented Interfaces:
VisitorState<T>
Direct Known Subclasses:
SBThreadLocalVisitorState

public class ThreadLocalVisitorState<T>
extends Object
implements VisitorState<T>

Simple thread local storage implementation for helping search condition visitors to access its state across multiple visit calls when a given visitor is not created on per-request basis.


Constructor Summary
ThreadLocalVisitorState()
           
 
Method Summary
 T get()
           
 T remove()
           
 void set(T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalVisitorState

public ThreadLocalVisitorState()
Method Detail

get

public T get()
Specified by:
get in interface VisitorState<T>

remove

public T remove()
Specified by:
remove in interface VisitorState<T>

set

public void set(T value)
Specified by:
set in interface VisitorState<T>

Apache CXF API

Apache CXF