Class ProxyUtil

Object
com.liferay.portal.kernel.util.ProxyUtil

public class ProxyUtil extends Object
Author:
Shuyang Zhou
  • Constructor Details

    • ProxyUtil

      public ProxyUtil()
  • Method Details

    • fetchInvocationHandler

      public static <T extends InvocationHandler> T fetchInvocationHandler(Object proxy, Class<T> clazz)
    • getInvocationHandler

      public static InvocationHandler getInvocationHandler(Object proxy)
    • getProxyClass

      public static Class<?> getProxyClass(ClassLoader classLoader, Class<?>... interfaceClasses)
    • getProxyProviderFunction

      public static <T> Function<InvocationHandler,T> getProxyProviderFunction(Class<?>... interfaceClasses)
    • isProxyClass

      public static boolean isProxyClass(Class<?> clazz)
    • newDelegateProxyInstance

      public static <T> T newDelegateProxyInstance(ClassLoader classLoader, Class<T> interfaceClass, Object delegateObject, T defaultObject)
    • newLazyDelegateProxyInstance

      public static <T> T newLazyDelegateProxyInstance(ClassLoader classLoader, Class<T> interfaceClass, Supplier<T> delegateObjectSupplier)
    • newProxyInstance

      public static Object newProxyInstance(ClassLoader classLoader, Class<?>[] interfaces, InvocationHandler invocationHandler)