Package com.bobocode.bring.core.utils
Class ProxyUtils
java.lang.Object
com.bobocode.bring.core.utils.ProxyUtils
Utility class providing methods to create proxies.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Handler class implementing MethodHandler for proxy invocation. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateProxy
(Class<?> clazz, Constructor<?> constructor, Object[] args) Creates a proxy instance for the given class using a specified constructor and arguments.
-
Constructor Details
-
ProxyUtils
public ProxyUtils()
-
-
Method Details
-
createProxy
Creates a proxy instance for the given class using a specified constructor and arguments.- Parameters:
clazz
- The class to create a proxy forconstructor
- The constructor to be used for proxy creationargs
- The arguments to pass to the constructor- Returns:
- The proxy object for the specified class
-