https://github.com/iulianoroberto/java_dynamic_proxy
Dynamic proxy in Java.
https://github.com/iulianoroberto/java_dynamic_proxy
dynamic-proxy java proxy
Last synced: 7 months ago
JSON representation
Dynamic proxy in Java.
- Host: GitHub
- URL: https://github.com/iulianoroberto/java_dynamic_proxy
- Owner: iulianoroberto
- Created: 2024-01-09T16:42:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T16:47:21.000Z (over 2 years ago)
- Last Synced: 2025-03-18T05:23:50.693Z (about 1 year ago)
- Topics: dynamic-proxy, java, proxy
- Language: Java
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dynamic-proxy
Dynamic proxy in Java.
By using dynamic Java proxies, instantiate proxies of the Math abstract type. The proxies should log the call on the standard output and propagate it to the Subject (MathImpl) in order to implement the requested operation. Hide the details of the creation of the proxy in a factory of Math (MathLoggerFactory), which depending on the constructor parameter is able to create instances of MathImpl or of the proxy to assign to variables of type Math. Assume one or more of the following methods for Math:
- double add(float a, float b);
- double sub(float a, float b);
- double mul(float a, float b);
- double div(float a, float b);