Class ByteBuddyProxyEngine

java.lang.Object
org.midheaven.lang.reflection.ByteBuddyProxyEngine
All Implemented Interfaces:
ProxyEngine

public class ByteBuddyProxyEngine extends Object implements ProxyEngine
Represents Byte Buddy Proxy Engine.
  • Constructor Details

    • ByteBuddyProxyEngine

      public ByteBuddyProxyEngine()
  • Method Details

    • canProxy

      public <T> boolean canProxy(Class<T> type)
      Checks whether can Proxy.
      Specified by:
      canProxy in interface ProxyEngine
      Parameters:
      type - the type value
      Returns:
      the result of canProxy
    • proxy

      public <T> T proxy(Class<T> type, Class<?>[] interfacesTypes, InvocationHandler handler)
      Performs proxy.
      Specified by:
      proxy in interface ProxyEngine
      Parameters:
      type - the type value
      interfacesTypes - the interfacesTypes value
      handler - the handler value
      Returns:
      the result of proxy