org.shiftone.cache
Class CacheProxy

java.lang.Object
  extended byorg.shiftone.cache.CacheProxy

public class CacheProxy
extends java.lang.Object

Static class CacheProxy can be used to create cache proxy objects of instances of objects that implement an interface.

 Thing thing = new ThingImpl();
 Thing cachedThing =
         (Thing)CacheProxy.newProxyInstance(thing, Thing.class, cache);

 cachedThing.doThing();
 

Version:
$Revision: 1.7 $
Author:
Jeff Drost

Constructor Summary
CacheProxy()
           
 
Method Summary
static java.lang.Object newProxyInstance(java.lang.ClassLoader loader, java.lang.Object target, java.lang.Class iface, Cache cache)
           
static java.lang.Object newProxyInstance(java.lang.Object target, java.lang.Class iface, Cache cache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheProxy

public CacheProxy()
Method Detail

newProxyInstance

public static java.lang.Object newProxyInstance(java.lang.ClassLoader loader,
                                                java.lang.Object target,
                                                java.lang.Class iface,
                                                Cache cache)
                                         throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

newProxyInstance

public static java.lang.Object newProxyInstance(java.lang.Object target,
                                                java.lang.Class iface,
                                                Cache cache)
                                         throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException