Class PdoMethodCache<T extends PersistentDomainObject<T>>

java.lang.Object
org.tentackle.pdo.PdoMethodCache<T>
Type Parameters:
T - the PDO type

public class PdoMethodCache<T extends PersistentDomainObject<T>> extends Object
Method-cache for PDOs.
Each PDO class provides its own cache.
  • Constructor Details

    • PdoMethodCache

      public PdoMethodCache(Class<T> clazz)
      Creates a method cache.
      Parameters:
      clazz - the interceptable class
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • invoke

      public Object invoke(PdoInvocationHandler<T> invocationHandler, Method method, Object[] args) throws Throwable
      Invokes a method on a delegate.
      Parameters:
      invocationHandler - the invocation handler
      method - the original method of the interface
      args - the method's args
      Returns:
      the methods return value
      Throws:
      Throwable - if invocation fails