java.lang.Object
tech.guilhermekaua.spigotboot.core.context.configuration.proxy.ConfigurationClassProxy
All Implemented Interfaces:
MethodInterceptor

public class ConfigurationClassProxy extends Object implements MethodInterceptor
  • Constructor Details

  • 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:
      invoke in interface MethodInterceptor
      Parameters:
      self - the proxy instance receiving the call
      thisMethod - the method being invoked
      proceed - the generated pass-through method: invokes the superclass body for class targets (and equals/hashCode/toString of interface proxies), or the default-method body for interface default methods; null when the method is abstract and there is nothing to call
      args - invocation arguments (owned by the caller; do not retain)
      Returns:
      the value to return to the caller
      Throws:
      Throwable - propagated to the caller unchanged