Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Architecture> Spring.NET
 

Pages: 1
Architecture
Spring.NET
Page:1/1 

  Print all messages in this thread  
Poster Message
Mountain
User



Location:
Florida
Joined on:
01-Apr-2005 05:05:51
Posted:
21 posts
# 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.
  Top
Paul.Lewis
User



Location:
Columbus Ohio USA
Joined on:
22-Aug-2005 21:06:58
Posted:
147 posts
# 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! Dissapointed


  Top
MacDennis
User



Location:
-
Joined on:
03-May-2005 13:14:11
Posted:
50 posts
# 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. Regular Smiley

  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
38086 posts
# 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 Regular Smiley


Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
knez
User



Location:
Belgrade, Serbia and Montenegro
Joined on:
01-Nov-2004 13:46:22
Posted:
37 posts
# 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.
  Top
pilotboba
User



Location:

Joined on:
05-Aug-2005 21:31:38
Posted:
434 posts
# 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


  Top
Mountain
User



Location:
Florida
Joined on:
01-Apr-2005 05:05:51
Posted:
21 posts
# 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.)
  Top
JimFoye
User



Location:
Austin, TX
Joined on:
22-Jun-2004 04:03:11
Posted:
656 posts
# Posted on: 26-Nov-2005 18:35:30.  
http://www.artima.com/lejava/articles/reuseP.html

Scroll down to "frameworkitis".


  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.