List/Grid Tag Archives: AOP

Spring AOP in security – controlling creation of UI components via aspects
The following post will show how in one of the projects that I took part in we used Spring’s AOP to introduce some security related functionalities. The concept was such that ...

Understanding Dynamic Proxy: Spring AOP Basics
Why AOP : To Understand AOP(Aspect Oriented Programming), we need to understand Cross Cutting Concerns in software development . In every project , there is some amount of code which ...

Getting rid of null parameters with a simple spring aspect
What is the most hated and at the same time the most popular exception in the world? I bet it’s the NullPointerException. NullPointerException can mean anything, from simple “ups, ...

Spring – Adding AOP support
I heard a story about one senior (and quite highly paid) softwaree engineer. He was given task to log every method in every controller in project he was working on. Engineer rewrote ...

Guice AOP and the Java Persistence API
The Java Persistence API provides a programming language framework for managing relational data through entity management and ORM APIs. Libraries like Hibernate and Guice Persist implement ...

Email filtering using Aspect and Spring Profile
During web application development, often the need for sending emails arise. However, sometimes the database is populated by data from production and there is a ...

Reference to dynamic proxy in a proxied class
There was an interesting question in Stackoverflow about how a Spring Bean can get a reference to the proxy created by Spring to handle transactions, ...

A Simple Introduction to AOP
Why use AOP, a simple way to answer this question is to show an implementation of a cross cutting concern without using AOP. Consider a simple service and it’s implementation: ...

AOP made easy with AspectJ and Spring
I recently started looking at Aspect Oriented Programming (AOP) and I’m finding it exciting to say the least. Of course I was acquainted with it, since I saw it used for transaction ...

Implementing Active Record Pattern with Spring AOP
During class design we should take decisions about the assignment of responsibilities that will have every class. If we have chosen well, systems tend to be easier to understand, maintain ...

