|
Tue
2
Aug '05
|
|
This article shows how to use AOP with nothing but java – No code generation or bytecode manipulation.
Sample Scenario:
You want to insert logging statements for every call to every method of a certain class. This sounds like the default example used to promote AOP, but there is an easier solution if you know about java.lang.reflect.Proxy and java.lang.reflect.InvocationHandler. Read the rest of this entry »