Dynamic Proxy
A dynamic proxy is an object generated at runtime that implements one or more interfaces. Every method call on the proxy is intercepted by an InvocationHandler, which can add behaviour before/after delegating to the real object — or skip delegation entirely. Spring AOP, JPA lazy loading, and mocking frameworks (Mockito) are built on dynamic proxies.
Content is available with subscription.
Get full access to all courses on the platform for one year with a single payment.
▼
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.