Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.service.proxy
Class MethodsWrapper

java.lang.Object
  extended by org.nuxeo.runtime.service.proxy.MethodsWrapper
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public abstract class MethodsWrapper
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Define wrappers for some methods on the target class.

Author:
Bogdan Stefanescu

Constructor Summary
MethodsWrapper(java.lang.Class<?> klass)
           
 
Method Summary
 java.lang.reflect.Method getWrappedMethod(java.lang.reflect.Method method)
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodsWrapper

public MethodsWrapper(java.lang.Class<?> klass)
Method Detail

getWrappedMethod

public java.lang.reflect.Method getWrappedMethod(java.lang.reflect.Method method)

invoke

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.