Spring.NET

Posts   
 
    
Mountain
User
Posts: 21
Joined: 01-Apr-2005
# Posted on: 20-Nov-2005 23:48:51   

Has anyone used LLBL Gen Pro with Spring.NET (http://www.springframework.net/index.html)?

Does anyone have any thoughts about whether this would be possible, and whether it would be a good idea to even consider it?

Any comments are appreciated - this is my first inquiry and I am not very familiar with Spring.NET yet. Thanks.

Paul.Lewis
User
Posts: 147
Joined: 22-Aug-2005
# Posted on: 22-Nov-2005 04:49:10   

Sorry Mountain,

I don't have any personal experience with Spring.Net. Perhaps someone in the expansive LLBLGen forum community will have a "good" answer for you! disappointed

MacDennis avatar
MacDennis
User
Posts: 50
Joined: 03-May-2005
# Posted on: 22-Nov-2005 09:49:56   

I also don't have any experience with this Framework and after quickly looking at that site the question remains, why should I use it in the first place?

The site fails to explain what Spring.Net actually is and how I could benefit from using it. It mentions things like 'Dependency Injection technigques', 'Aspect Oriented Programming', 'Application Context' and 'a decoupled publisher/subscriber eventing style' .. Ehhh ???

A short paragraph explaining these matters would be enough. I surely don't have the time to dig through books or the Java counterpart to figure out why I should use this framework. It's a problem I've seen with several other Java > ASP.Net projects. So if anyone can enlighten me, go ahead. simple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39612
Joined: 17-Aug-2003
# Posted on: 22-Nov-2005 10:02:24   

Spring is the framework for aspect oriented programming and it can benefit you in a lot of ways. For example, to mix BL with entity classes you can do that (in theory) with AOP. AOP is about writing logic in separate frameworks and apply that logic on existing objects, without the necessity of having to re-implement that logic in the classes the objects are instances of.

One dreaded example is 'auditing'. Write your auditing package once and apply it to every object set out there.

Ok, that's the theory, in practise it might have some issues and it might not perform that well, but you'll get the idea simple_smile

Frans Bouma | Lead developer LLBLGen Pro
knez
User
Posts: 37
Joined: 01-Nov-2004
# Posted on: 22-Nov-2005 11:08:23   

Think of AOP as a set of services that are orthogonal to the functionality of your application. If you remember COM+ services, you have the idea of what that might be. There is some container that intercepts calls to your methods that you wish to become serviced. The great benefit of this is that you avoid calls to services from all over your code.

We combined LLBL and Spring.NET in one project. We let Spring.NET intercept calls to DataAccessAdapter in order to: - gather statistical data (number of reads, writes, average execution time…) - handle exceptions (log, wrap them up, retry…)

And yes, I think that auditing can be elegantly solved with this technique. And with tighter coupling of those two (LLBL letting Spring.NET create Entity instances), we could have a plethora of useful services built into Entity instances.

pilotboba
User
Posts: 434
Joined: 05-Aug-2005
# Posted on: 22-Nov-2005 18:15:24   

Mountain wrote:

Has anyone used LLBL Gen Pro with Spring.NET (http://www.springframework.net/index.html)?

Does anyone have any thoughts about whether this would be possible, and whether it would be a good idea to even consider it?

Any comments are appreciated - this is my first inquiry and I am not very familiar with Spring.NET yet. Thanks.

Another framework that provides similar services but seems to be more mature is the Castle Project. Also available on sourceforge. It does have some basic explainations of why you would use it.

http://www.castleproject.org/index.php/Main_Page

BOb

Mountain
User
Posts: 21
Joined: 01-Apr-2005
# Posted on: 22-Nov-2005 19:00:19   

Thanks for all the feedback - very helpful.

(BTW, I looked at Castle and I felt Spring.NET was more mature, but that was just my impression. They both look interesting.)

JimFoye avatar
JimFoye
User
Posts: 656
Joined: 22-Jun-2004
# Posted on: 26-Nov-2005 18:35:30   

http://www.artima.com/lejava/articles/reuseP.html

Scroll down to "frameworkitis".