Spring Framework

Make your work easier.

Eclipse RCP 4

Try something different.

Wincor Nixdorf

Experience meets vision.

Java 8

Write once, run anywhere.

Scrum

Improving the Profession of Software Development.

Showing posts with label Decorator. Show all posts
Showing posts with label Decorator. Show all posts

Sunday, March 15, 2015

Java @nnotations and reflection

Today I would like to tell you about programming trends. Currently there are a lot of voices which disagree with the idea of using Java reflection mechanism. The most often used argument is that we should go for more OOP solutions. On the other side, number of frameworks based on annotations (so build strongly on reflection) is growing, and developers love them. So how it is exactly? Let's check it on some example.

Saturday, July 26, 2014

Let's decorate!

Today I want to talk about Design Patterns, especially Decorator. Here is the story, which gave me a reason to write this post:

Few days ago I was asked to improve performance in one of our web applications (JEE + Spring + Stored Procedures via JDBC). One of the stored procedures is calling on multiple schema, because of big amount of data stored, that operation takes a lot of time. So I have to do some magic with multi-threading in JEE application (I will post about it in the future). During the refactoring I found the object called CrappyBean (standard JavaBean object). It was a new object, based on some old functionality (called NormalBean - also standard POJO object). Because stored procedures are the oldest part of system they are returning old types of objects.