Package com.bobocode.bring.core.utils
Class ProxyUtils.Handler
java.lang.Object
com.bobocode.bring.core.utils.ProxyUtils.Handler
- All Implemented Interfaces:
javassist.util.proxy.MethodHandler
- Enclosing class:
ProxyUtils
Handler class implementing MethodHandler for proxy invocation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
constructor
-
constructorArgs
-
-
Constructor Details
-
Handler
public Handler()
-
-
Method Details
-
invoke
public Object invoke(Object self, Method thisMethod, Method proceed, Object[] args) throws Throwable Invokes the method on the proxy object and delegates to the actual object.- Specified by:
invokein interfacejavassist.util.proxy.MethodHandler- Parameters:
self- The proxy objectthisMethod- The method being invoked on the proxyproceed- The proceed methodargs- The arguments for the method invocation- Returns:
- The result of the method invocation on the actual object
- Throws:
Throwable- If an error occurs during method invocation
-