org.jboss.cache.interceptors
Class CacheLoaderInterceptor

java.lang.Object
  extended byorg.jboss.cache.interceptors.Interceptor (src) 
      extended byorg.jboss.cache.interceptors.CacheLoaderInterceptor

public class CacheLoaderInterceptor
extends Interceptor (src)

Loads nodes that don't exist at the time of the call into memory from the CacheLoader


Constructor Summary
CacheLoaderInterceptor()
           
 
Method Summary
 java.lang.Object invoke(MethodCall m)
          Makes sure a node is loaded into memory before a call executes (no-op if node is already loaded).
 void setCache(TreeCache (src)  cache)
           
 
Methods inherited from class org.jboss.cache.interceptors.Interceptor (src)
getNext, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheLoaderInterceptor

public CacheLoaderInterceptor()
Method Detail

setCache

public void setCache(TreeCache (src)  cache)
Overrides:
setCache in class Interceptor (src)

invoke

public java.lang.Object invoke(MethodCall m)
                        throws java.lang.Throwable
Makes sure a node is loaded into memory before a call executes (no-op if node is already loaded). If attributes of a node are to be accessed by the method, the attributes are also loaded.

Overrides:
invoke in class Interceptor (src)
Parameters:
m -
Returns:
Throws:
java.lang.Throwable