org.castor.cache

Class AbstractBaseCache

public abstract class AbstractBaseCache extends Object implements Cache

Base implementation of all LRU cache types.

Since: 1.0

Version: $Revision: 6320 $ $Date: 2006-05-05 13:53:54 -0600 (Fri, 05 May 2006) $

Author: Werner Guttmann Ralf Joachim

Method Summary
voidclose()
voidexpire(Object key)
voidexpireAll()
StringgetName()
voidinitialize(Properties params)
protected ObjectinvokeMethod(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 ObjectinvokeStaticMethod(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.

Method Detail

close

public void close()
{@inheritDoc }

See Also: close

expire

public final void expire(Object key)
{@inheritDoc }

See Also: Cache

expireAll

public final void expireAll()
{@inheritDoc }

See Also: expireAll

getName

public final String getName()
{@inheritDoc }

See Also: getName

initialize

public void initialize(Properties params)
{@inheritDoc }

See Also: initialize

invokeMethod

protected final 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.

Parameters: 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.

Returns: The result of the method invokation.

Throws: NoSuchMethodException If a matching method is not found or if the name is "<init>"or "<clinit>". IllegalAccessException If this Method object enforces Java language access control and the underlying method is inaccessible. InvocationTargetException If the underlying method throws an exception.

invokeStaticMethod

protected final 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.

Parameters: 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.

Returns: The result of the method invokation.

Throws: NoSuchMethodException If a matching method is not found or if the name is "<init>"or "<clinit>". IllegalAccessException If this Method object enforces Java language access control and the underlying method is inaccessible. InvocationTargetException If the underlying method throws an exception.

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com