Back Forum Reply New

@Configurable Lifecycle

Hello all,

This is question of what's going on behind the scenes in the VM when Spring uses @Configurable to define an aspect.

So if I have everything set up to inject a DAO into my domain object, and do something like:

Person Jon = new Person();

What processes are running behind the scenes to say, quot;Oh, look NEW was called, there is an @configurable, I now have to weave in the DAO.

What is the overhead involved? Is it negligible?

Thanks in advance!


Originally Posted by huangjdWhat is the overhead involved? Is it negligible?

It's just an aspect org..beans.factory.aspectj.Annotati  onBeanConfigurerAspect, which picks up the annotated classes through a pointcut and configures the bean to inject the dependencies.

Cheers.
- Debasish
¥
Back Forum Reply New