Last Updated: February 25, 2016
·
1.553K
· mariushe

Transactions using execute around method in Java 8

After reading Functional Programming in Java by Venkat Subramaniam, I was really impressed by the execute around method pattern and how great it works together with lambdas.

The pattern is popular when handling resources, but also fits other situations where you have common parts. By using this pattern you remove the burden of having common code in several classes. That way they can focus on their core functionality.

To give an example of this pattern, I've created the following blog post:

TRANSACTIONS USING EXECUTE AROUND METHOD PATTERN AND LAMBDAS