站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 Cache API Documentation 英文版文档

CachedMapInterceptor (JBossCache API) - JBoss 4.0.1 sp1 Cache API Documentation 英文版文档


org.jboss.cache.aop
Class CachedMapInterceptor

java.lang.Object
  extended byorg.jboss.cache.aop.CachedMapInterceptor
All Implemented Interfaces:
CachedCollectionInterceptor, org.jboss.aop.advice.Interceptor, Map

public class CachedMapInterceptor
extends Object
implements CachedCollectionInterceptor, Map

Map interceptor to perform Map cache storage and retrieval

Author:
Harald Gliebe, Ben Wang

Nested Class Summary
protected  class CachedMapInterceptor.Entry
           
 
Field Summary
protected  TreeCacheAop cache
           
protected  Fqn fqn
           
protected static org.jboss.logging.Logger log
           
protected static Map managedMethods
           
protected  Map methodMap
           
 
Constructor Summary
protected CachedMapInterceptor(TreeCacheAop cache, Fqn fqn, Class clazz)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object object)
           
 boolean containsValue(Object object)
           
 Set entrySet()
           
 boolean equals(Object object)
           
 Object get(Object key)
           
 String getName()
           
protected  Node getNode()
           
 int hashCode()
           
 Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object key, Object value)
           
 void putAll(Map map)
           
 Object remove(Object key)
           
 int size()
           
 String toString()
           
 Collection values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final org.jboss.logging.Logger log

managedMethods

protected static final Map managedMethods

cache

protected TreeCacheAop cache

fqn

protected Fqn fqn

methodMap

protected Map methodMap
Constructor Detail

CachedMapInterceptor

protected CachedMapInterceptor(TreeCacheAop cache,
                               Fqn fqn,
                               Class clazz)
Method Detail

getName

public String getName()
Specified by:
getName in interface org.jboss.aop.advice.Interceptor

invoke

public Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
              throws Throwable
Specified by:
invoke in interface org.jboss.aop.advice.Interceptor
Throws:
Throwable

getNode

protected Node getNode()

get

public Object get(Object key)
Specified by:
get in interface Map

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map

putAll

public void putAll(Map map)
Specified by:
putAll in interface Map

remove

public Object remove(Object key)
Specified by:
remove in interface Map

clear

public void clear()
Specified by:
clear in interface Map

size

public int size()
Specified by:
size in interface Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map

containsKey

public boolean containsKey(Object object)
Specified by:
containsKey in interface Map

containsValue

public boolean containsValue(Object object)
Specified by:
containsValue in interface Map

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map

values

public Collection values()
Specified by:
values in interface Map

keySet

public Set keySet()
Specified by:
keySet in interface Map

hashCode

public int hashCode()
Specified by:
hashCode in interface Map

equals

public boolean equals(Object object)
Specified by:
equals in interface Map

toString

public String toString()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.