org.gcube.common.resources
Class ResourceInterceptor

java.lang.Object
  extended by org.gcube.common.resources.ResourceInterceptor
All Implemented Interfaces:
InvocationHandler

public class ResourceInterceptor
extends Object
implements InvocationHandler

An interceptor of calls to Resource proxies.

Author:
Fabio Simeoni

Constructor Summary
ResourceInterceptor(Resource proxied)
          Creates an instance with a proxied Resource.
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceInterceptor

public ResourceInterceptor(Resource proxied)
Creates an instance with a proxied Resource.

Parameters:
proxied - the resource
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2012. All Rights Reserved.