Package com.liferay.portal.kernel.util
Class ProxyUtil
Object
com.liferay.portal.kernel.util.ProxyUtil
- Author:
- Shuyang Zhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends InvocationHandler>
TfetchInvocationHandler
(Object proxy, Class<T> clazz) static InvocationHandler
getInvocationHandler
(Object proxy) static Class<?>
getProxyClass
(ClassLoader classLoader, Class<?>... interfaceClasses) static <T> Function<InvocationHandler,
T> getProxyProviderFunction
(Class<?>... interfaceClasses) static boolean
isProxyClass
(Class<?> clazz) static <T> T
newDelegateProxyInstance
(ClassLoader classLoader, Class<T> interfaceClass, Object delegateObject, T defaultObject) static <T> T
newLazyDelegateProxyInstance
(ClassLoader classLoader, Class<T> interfaceClass, Supplier<T> delegateObjectSupplier) static Object
newProxyInstance
(ClassLoader classLoader, Class<?>[] interfaces, InvocationHandler invocationHandler)
-
Constructor Details
-
ProxyUtil
public ProxyUtil()
-
-
Method Details
-
fetchInvocationHandler
-
getInvocationHandler
-
getProxyClass
-
getProxyProviderFunction
public static <T> Function<InvocationHandler,T> getProxyProviderFunction(Class<?>... interfaceClasses) -
isProxyClass
-
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)
-