The Big Switch: Rewiring the World, from Edison to Google


bigswitch

If you’re looking to a highly entertaining book, make sure to get your hands on this one. The Author gives a history lesson, an optimistic look on the rapid pace of technology innovation and gives an excellent insight into the future we can expect if present trends continue.
[more ...]


 

Everything you know about CSS is wrong!


everythingyouknowabou-cssiswrong1

For theses of you who are struggling, like me, trying to deliver
pixel perfect web site. That keeps trying to render exactly the same web page in
IE6, IE7, Firefox, Safari. Then you should take a look at this book.
[more ...]


 

How to obtain a target object from an AOP proxy in Spring


Have you ever been in a situation or you need to access the target object, proxied by Spring AOP or CGLIB ?
Yes?

Check out this obscure Interface that I’ve found in the Spring API:
org.springframework.aop.framework.Advised

Any AOP proxy obtained from Spring can be cast to this interface to allow manipulation of its AOP advice. With this in mind, you can track down the target object, and get the information you need.

Here’s an example:

Object myBean = yourSpringContext.getBean(beanName);
if(myBean instanceof Advised){
      Advised advised = (Advised) actionBean;
      // Get the target object: The proxied object
      Object myObject = advised.getTargetSource().getTarget();
}