org.jboss.weld.context.cache
Class RequestScopedBeanCache
java.lang.Object
org.jboss.weld.context.cache.RequestScopedBeanCache
public class RequestScopedBeanCache
- extends Object
Caches beans over the life of a request, to allow for efficient bean lookups from proxies.
- Author:
- Stuart Douglas
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestScopedBeanCache
public RequestScopedBeanCache()
isActive
public static boolean isActive()
addItem
public static void addItem(RequestScopedItem item)
addItem
public static void addItem(ThreadLocal item)
beginRequest
public static void beginRequest()
endRequest
public static void endRequest()
- ends the request and clears the cache. This can be called before the request is over,
in which case the cache will be unavailable for the rest of the request.
Copyright © 2013 Seam Framework. All Rights Reserved.