Google Groups Home
Help | Sign in
Message from discussion {LightwireFramework} Re: Handling circular dependencies.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Paul Marcotte  
View profile
 More options Feb 9, 9:47 pm
From: "Paul Marcotte" <pmarco...@gmail.com>
Date: Sat, 9 Feb 2008 18:47:35 -0800
Local: Sat, Feb 9 2008 9:47 pm
Subject: Re: {LightwireFramework} Re: Handling circular dependencies.

Hi LT,

My pleasure.  To give you a bit more information, you can use a superset of
ColdSpring xml definitions with Lightwire.  The difference is that since
Lightwire supports mixin injection, there is a <mixin/> tag.  What mixin
give you is the ability to reference the dependency as
variables.MyMixinwithout having to add a specific setter for
"MyMixin".

But that's where it stops.  You won't find  AOP, Autowiring, or remote
proxies with LightWire.

Regarding the circular dependency, I just wanted to mention that many of the
community leaders like Sean Corfield and Brian Kotek suggest that having a
1:1 ration of Services to business objects can cause issues like circular
dependencies.  Quick example.  Say you have a ProductService and and
CategoryService for your online catalog.  If you have a circular dependency
between the two, you might consider rolling them up into a CatalogService
that provides API methods Products and Categories.  This is a application
design paradigm that I'm currently working toward.

So, uh, that's my 2 cents...

Cheers,

Paul

On Feb 9, 2008 12:33 PM, lagos.tout <lagos.t...@gmail.com> wrote:

> Hi, Paul.

> Thanks for responding.
> I was just curious for comparison sake with ColdSpring.
> I guess I haven't figured out when to use CS over LW, or vice-versa.
> Of course, for AOP I'd have no choice but CS.  But for the things they do
> have in common... ?
> Thanks.

> LT

> ----- Original Message ----
> From: Paul Marcotte <pmarco...@gmail.com>
> To: lightwireFramework@googlegroups.com
> Sent: Thursday, February 7, 2008 3:43:58 PM
> Subject: {LightwireFramework} Re: Handling circular dependencies.

> Hey LT,

> You can use "mixin" injection in Lightwire rather than "setter"
> injection.   In ColdSpring the way around a circular dependency is to use a
> property  tag instead of a constructor-arg.  Lightwire has both constructor
> and setter injection and the aforementioned mixin injection.

> I caught your post on the ColdSpring list as well, so I'm curious about
> you object dependencies.  Do you mind sharing some information about the
> dependent objects?

> Paul

> On Feb 7, 2008 3:31 PM, LT <lagos.t...@gmail.com> wrote:

> > Hi,

> > I was wondering if Lightwire handles circular dependencies in a
> > different way from ColdSpring.
> > Thanks.

> > LT.

--
Paul Marcotte
Fancy Bread - in the heart or in the head?
http://www.fancybread.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google