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 InvocationHandlergetInvocationHandler(Object proxy) static Class<?>getProxyClass(ClassLoader classLoader, Class<?>... interfaceClasses) static <T> Function<InvocationHandler,T> getProxyProviderFunction(Class<?>... interfaceClasses) static booleanisProxyClass(Class<?> clazz) static <T> TnewDelegateProxyInstance(ClassLoader classLoader, Class<T> interfaceClass, Object delegateObject, T defaultObject) static <T> TnewLazyDelegateProxyInstance(ClassLoader classLoader, Class<T> interfaceClass, Supplier<T> delegateObjectSupplier) static ObjectnewProxyInstance(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)
-