Class ComponentProxy
java.lang.Object
tech.guilhermekaua.spigotboot.core.context.component.proxy.ComponentProxy
- All Implemented Interfaces:
MethodInterceptor
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ComponentProxy
public ComponentProxy()
-
-
Method Details
-
createProxy
-
invoke
public Object invoke(Object self, Method thisMethod, Method proceed, Object[] args) throws Throwable - Specified by:
invokein interfaceMethodInterceptor- Parameters:
self- the proxy instance receiving the callthisMethod- the method being invokedproceed- the generated pass-through method: invokes the superclass body for class targets (andequals/hashCode/toStringof interface proxies), or the default-method body for interface default methods;nullwhen the method is abstract and there is nothing to callargs- invocation arguments (owned by the caller; do not retain)- Returns:
- the value to return to the caller
- Throws:
Throwable- propagated to the caller unchanged
-