org.jboss.cache.pojo.interceptors.dynamic
Class CachedListInterceptor
java.lang.Object
org.jboss.cache.pojo.interceptors.dynamic.AbstractCollectionInterceptor
org.jboss.cache.pojo.interceptors.dynamic.CachedListInterceptor
- All Implemented Interfaces:
- java.lang.Cloneable, org.jboss.aop.advice.Interceptor, BaseInterceptor
public class CachedListInterceptor
- extends AbstractCollectionInterceptor
List ineterceptor that delegates to underlying implementation.
- Author:
- Ben Wang
Method Summary |
void |
attach(Fqn fqn,
boolean copyToCache)
When we want to associate this proxy with the cache again. |
java.lang.Object |
clone()
|
void |
detach(boolean removeFromCache)
When we want to separate this proxy from the cache. |
java.lang.Object |
getCurrentCopy()
|
java.lang.String |
getName()
|
java.lang.Object |
invoke(org.jboss.aop.joinpoint.Invocation invocation)
|
void |
setInterceptor(org.jboss.aop.advice.Interceptor intcptr)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachedListInterceptor
public CachedListInterceptor(PojoCacheImpl cache,
Fqn fqn,
java.lang.Class clazz,
java.util.List obj)
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
setInterceptor
public void setInterceptor(org.jboss.aop.advice.Interceptor intcptr)
attach
public void attach(Fqn fqn,
boolean copyToCache)
- When we want to associate this proxy with the cache again. We will need to translate the in-memory
content to the cache store first.
- Overrides:
attach
in class AbstractCollectionInterceptor
detach
public void detach(boolean removeFromCache)
- When we want to separate this proxy from the cache. We will destroy the cache content and copy them to
the in-memory copy.
- Overrides:
detach
in class AbstractCollectionInterceptor
getCurrentCopy
public java.lang.Object getCurrentCopy()
- Specified by:
getCurrentCopy
in class AbstractCollectionInterceptor
getName
public java.lang.String getName()
invoke
public java.lang.Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
throws java.lang.Throwable
- Throws:
java.lang.Throwable