Class ConfigurationClassProxy
java.lang.Object
tech.guilhermekaua.spigotboot.core.context.configuration.proxy.ConfigurationClassProxy
- All Implemented Interfaces:
MethodInterceptor
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationClassProxy(DependencyManager dependencyManager, Set<Method> beanMethods) -
Method Summary
-
Constructor Details
-
ConfigurationClassProxy
-
-
Method Details
-
createProxy
public static <T> T createProxy(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull Set<Method> beanMethods, @NotNull @NotNull DependencyManager dependencyManager) -
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
-