|
|
AspectJ amp; spring integration
hello all, can anyone tell me how to integrate aspectj with Spring?
i have found a site where a sample is shown
blog...he_teache.html
however i was not able to find class
org.aspectj..beans.factory.config.A spectBootstrapBean
And, same issue with Spring reference documentation (Chapter 6).
the method 'factory-method=quot;aspectOfquot; ' is not shown..
where does it come from?
can anyone help me?
thanx and regardsmarco
The example in chapter 6 of the Reference Manual is complete. factory-method is an IoC container feature, telling Spring to call a static method to obtain an instance of the class to apply Setter Injection to.
Adrian's blog was written before we added this feature, specifically to support AspectJ (although it's also useful in some other cases).
Uses factory-method=quot;aspectOfquot; you cause the IoC container to get the instance of a singleton aspect. It can then apply Dependency Injection to it, configuring how it will subsequently behave.
.
Rob |
|