Pure-Essence.Net

Posts Tagged ‘reflection

Dynamically invoke methods using spring config

Posted by: pureessence on: March 25, 2011

A business rule at work requires some flexible configurations. I attempted to fulfill the need by create different spring batch steps/tasklets to execute each requirement based on a property value. For example, step 1 will need to execute methodOne on the class Repository with the appropriate parameters. The method signature & parameters are determined by [...]

Setting private property without setter in Java

Posted by: pureessence on: August 25, 2010

Not really a new trick but I had to look for the syntax today to use reflection to set a private property on an object to use it in a junit test.


My most adorable Pomeranians

Categories

Archives

SocialVibe


Follow

Get every new post delivered to your Inbox.