PDA

View Full Version : AOP without the container ?


Thibaut
08-05-2005, 12:46 PM
Hi,

I've just started looking at the AOP functionality in the pre 1.0.0 release. As far as I have understood, objects are proxied to allow to set pointcuts, and this proxying occurs when object are retrieved from the IOC container (I may already be wrong here!).

My question is: is it possible to use the AOP part of spring.net without a fully spring-ioc-enabled application ?

I was thinking about adding business metrics though AOP in an application which doesn't use spring at all (yet!).

kind regards

Thibaut
--
[blog] http://www.dotnetguru2.org/tbarrere

Rick Evans
08-05-2005, 02:07 PM
Hiya

Yes, the Spring.AOP library is quite useable outwith the IoC container.

You will still have to deploy the Spring.Core library alongside the Spring.AOP library since the Spring.Aop library uses some of the classes in the Spring.Core library, but this is merely incidental.

Thanks for your comment... I'll be sure to refactor the current examples (which use the IoC container to integrate the AOP) to also show how one might achieve the same result sans the use of the container. The 1.0 release is imminent (no more than a few days off)... examples of programmatic AOP outwith the IoC container will be included.

Ciao
Rick