proxy

A collection of 3 posts

A Java geek
  • Me
  • Books
  • Speaking
  • Mentions
  • Focus
May 10, 2010 proxy

The power of proxies in Java

In this article, I’ll show you the path that leads to true Java power, the use of proxies.

Nicolas Fränkel
Feb 17, 2010 get hibernate jpa load proxy

Hibernate hard facts - Part 4

This is the 4th post in the Hibernate hard facts focus series. In this article, I will show the subtle differences between get() and load() methods.

Nicolas Fränkel
May 21, 2009 factoryBean mockito proxy spring spy stub stubbing unit testing

Mockito' spy() method and Spring

Mockito is a mocking framework (see Two different mocking approaches) that is an offshoot of EasyMock. Whatever the mocking framework one uses, a common feature is the ability to mock interfaces, through the JDK Proxy class. This is well and nice, but one has to explicitly mock every method that one wants to use in the course of the test. What if I want to mock an already existing implementation, with some methods providing behaviours that suit me ? Today, I ran across this case: I had a legacy

Nicolas Fränkel
A Java geek © 2008-2025
v. f32325969478592b3c56e2566b1da38f32e70c50/10035795030
Latest Posts