org.castor.cache
Class AbstractBaseCache
java.lang.Object
org.castor.cache.AbstractBaseCache
- Cache, Map
public abstract class AbstractBaseCache
extends java.lang.Object
Base implementation of all LRU cache types.
$Revision: 6907 $ $Date: 2006-05-05 13:53:54 -0600 (Fri, 05 May 2006) $
void | close() -
|
void | expire(Object key) -
|
void | expireAll() -
|
String | getName() -
|
void | initialize(Properties params) -
|
protected Object | invokeMethod(Object target, String name, Class[] types, Object[] arguments) - Invoke method with given name and arguments having parameters of types
specified on the given target.
|
protected Object | invokeStaticMethod(Class target, String name, Class[] types, Object[] arguments) - Invoke static method with given name and arguments having parameters of
types specified on the given target.
|
expire
public final void expire(Object key)
- expire in interface Cache
org.castor.cache.Cache.expire(java.lang.Object)
getName
public final String getName()
- getName in interface Cache
invokeMethod
protected final Object invokeMethod(Object target,
String name,
Class[] types,
Object[] arguments)
throws NoSuchMethodException,
IllegalAccessException,
InvocationTargetException
Invoke method with given name and arguments having parameters of types
specified on the given target.
target
- The target object to invoke the method on.name
- The name of the method to invoke.types
- The types of the parameters.arguments
- The parameters.
- The result of the method invokation.
invokeStaticMethod
protected final Object invokeStaticMethod(Class target,
String name,
Class[] types,
Object[] arguments)
throws NoSuchMethodException,
IllegalAccessException,
InvocationTargetException
Invoke static method with given name and arguments having parameters of
types specified on the given target.
target
- The target object to invoke the method on.name
- The name of the method to invoke.types
- The types of the parameters.arguments
- The parameters.
- The result of the method invokation.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com