Build-time weaving with @Configurable
I have been able to use ajc (1.5.2) to effectively weave aspects declared with the @Aspect annotation. But I don't seem to be getting it to weave beans with the @Configurable annotation.
I have tried to follow the instructions in the docs, but I am sure that I am missing something.
I compiled with spring-aspects.jar in my classpath. I added:
to my application context. To be safe, I added:
to the first bean that executes on startup. And I added:
@Configurable( autowire = Autowire.BY_NAME )
to the domain object that I wanted to wire.
However, on startup I get a null pointer exception because the dependency was never wired. Do I need to do something else to tell ajc how to weave this class?
I have had it working with the lazy-init bean definition.
It's a great little tool when it works. I am not sure it worked in all classes, but it definitely worked in some of them.