org.logicblaze.lingo
Class CachingMetadataStrategy

java.lang.Object
  extended by org.logicblaze.lingo.CachingMetadataStrategy
All Implemented Interfaces:
java.io.Serializable, MetadataStrategy

public class CachingMetadataStrategy
extends java.lang.Object
implements MetadataStrategy

Provides caching of metadata for performance.

Version:
$Revision$
See Also:
Serialized Form

Constructor Summary
CachingMetadataStrategy(MetadataStrategy proxy)
           
CachingMetadataStrategy(MetadataStrategy proxy, java.util.Map cache)
           
 
Method Summary
protected  java.util.Map createCache()
           
 java.util.Map getCache()
           
 int getCacheSize()
           
 MethodMetadata getMethodMetadata(java.lang.reflect.Method method)
          Generates the method specific metadata for the given method invocation
 ResultJoinStrategy getResultJoinStrategy(org.aopalliance.intercept.MethodInvocation methodInvocation, MethodMetadata metadata)
          Returns the strategy for joining multiple results together when communicating with multiple back end servers over topics.
 void setCache(java.util.Map cache)
           
 void setCacheSize(int cacheSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingMetadataStrategy

public CachingMetadataStrategy(MetadataStrategy proxy)

CachingMetadataStrategy

public CachingMetadataStrategy(MetadataStrategy proxy,
                               java.util.Map cache)
Method Detail

getMethodMetadata

public MethodMetadata getMethodMetadata(java.lang.reflect.Method method)
Description copied from interface: MetadataStrategy
Generates the method specific metadata for the given method invocation

Specified by:
getMethodMetadata in interface MetadataStrategy

getResultJoinStrategy

public ResultJoinStrategy getResultJoinStrategy(org.aopalliance.intercept.MethodInvocation methodInvocation,
                                                MethodMetadata metadata)
Description copied from interface: MetadataStrategy
Returns the strategy for joining multiple results together when communicating with multiple back end servers over topics.

Specified by:
getResultJoinStrategy in interface MetadataStrategy

getCache

public java.util.Map getCache()

setCache

public void setCache(java.util.Map cache)

getCacheSize

public int getCacheSize()

setCacheSize

public void setCacheSize(int cacheSize)

createCache

protected java.util.Map createCache()


Copyright © 2009 LogicBlaze, Inc.. All Rights Reserved.