Package de.alpharogroup.model.reflect
Class CachingMethodResolver
- java.lang.Object
-
- de.alpharogroup.model.reflect.CachingMethodResolver
-
- All Implemented Interfaces:
IMethodResolver
public class CachingMethodResolver extends java.lang.Object implements IMethodResolver
A cache of a wrappedIMethodResolver
.
-
-
Constructor Summary
Constructors Constructor Description CachingMethodResolver(IMethodResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy(java.lang.Object application)
java.io.Serializable
getId(java.lang.reflect.Method method)
Get the identifier for the given method.java.lang.reflect.Method
getMethod(java.lang.Class<?> owner, java.io.Serializable id)
Get method by identifier.java.lang.reflect.Method
getSetter(java.lang.reflect.Method getter)
Get a setter for the given method.
-
-
-
Constructor Detail
-
CachingMethodResolver
public CachingMethodResolver(IMethodResolver resolver)
-
-
Method Detail
-
destroy
public void destroy(java.lang.Object application)
-
getId
public java.io.Serializable getId(java.lang.reflect.Method method)
Description copied from interface:IMethodResolver
Get the identifier for the given method.- Specified by:
getId
in interfaceIMethodResolver
- Parameters:
method
- method- Returns:
- method identifier
-
getMethod
public java.lang.reflect.Method getMethod(java.lang.Class<?> owner, java.io.Serializable id)
Description copied from interface:IMethodResolver
Get method by identifier.- Specified by:
getMethod
in interfaceIMethodResolver
- Parameters:
owner
- the owning classid
- method identifier- Returns:
- method
-
getSetter
public java.lang.reflect.Method getSetter(java.lang.reflect.Method getter)
Description copied from interface:IMethodResolver
Get a setter for the given method.- Specified by:
getSetter
in interfaceIMethodResolver
- Parameters:
getter
- the getter- Returns:
- the setter
-
-