org.jboss.weld.context.cache
Class RequestScopedBeanCache

java.lang.Object
  extended by 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

Constructor Summary
RequestScopedBeanCache()
           
 
Method Summary
static void addItem(RequestScopedItem item)
           
static void addItem(ThreadLocal item)
           
static void beginRequest()
           
static void endRequest()
          ends the request and clears the cache.
static boolean isActive()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestScopedBeanCache

public RequestScopedBeanCache()
Method Detail

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.