|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.bean.BeanDelegator
public class BeanDelegator
An InvocationHandler that delegates method
calls between the BeanAdapter and the bean
| Method Summary | |
|---|---|
static Object |
getInstance(Object service,
Object bean,
Class[] interfaces)
Get an instance of the BeanDelegator using the ClassLoader of the bean parameter to define the proxy class |
static Object |
getInstance(Object service,
Object bean,
Class[] interfaces,
ClassLoader loader)
Get an instance of the BeanDelegator |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Perform the invocation, directing the method request to the appropriate implementation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Object getInstance(Object service,
Object bean,
Class[] interfaces)
service - The service, must not be nullbean - The bean, must not be nullinterfaces - The interfaces to expose, must not be null
NullPointerException - if any of the parameters is
null
IllegalArgumentException - If the interfaces parameter has a
zero length
public static Object getInstance(Object service,
Object bean,
Class[] interfaces,
ClassLoader loader)
service - The service, must not be nullbean - The bean, must not be nullinterfaces - The interfaces to expose, must not be
nullloader - The class loader to define the proxy class
NullPointerException - if any of the parameters is
null
IllegalArgumentException - If the interfaces parameter has a zero
length
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
invoke in interface InvocationHandlerThrowableInvocationHandler.invoke(Object, java.lang.reflect.Method, Object[])
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||