|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webbeans.bean.proxy.ClientProxyMethodHandler
public class ClientProxyMethodHandler
A Javassist MethodHandler that delegates method calls to a proxied bean. If the transient bean has become null, it is looked up from the manager bean list before the invocation.
ClientProxyProvider
,
Serialized FormConstructor Summary | |
---|---|
ClientProxyMethodHandler(Bean<?> bean,
ManagerImpl manager,
int beanIndex)
Constructor |
Method Summary | |
---|---|
java.lang.Object |
invoke(java.lang.Object self,
java.lang.reflect.Method proxiedMethod,
java.lang.reflect.Method proceed,
java.lang.Object[] args)
Invokes the method on the correct version of the instance as obtained by a context lookup |
java.lang.String |
toString()
Gets a string representation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClientProxyMethodHandler(Bean<?> bean, ManagerImpl manager, int beanIndex)
bean
- The bean to proxybeanIndex
- The index to the bean in the manager bean listMethod Detail |
---|
public java.lang.Object invoke(java.lang.Object self, java.lang.reflect.Method proxiedMethod, java.lang.reflect.Method proceed, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface javassist.util.proxy.MethodHandler
self
- the proxy instance.thisMethod
- the overridden method declared in the super
class or interface.proceed
- the forwarder method for invoking the overridden
method. It is null if the overridden mehtod is
abstract or declared in the interface.args
- an array of objects containing the values of
the arguments passed in the method invocation
on the proxy instance. If a parameter type is
a primitive type, the type of the array element
is a wrapper class.
java.lang.Throwable
- if the method invocation fails.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |