LightWire 0.62 - Ghetto Annotations!

Want to see what it is like to let your bean dictate some of its dependency injections? Try out LightWire 0.62. For now it is just for mixin injections and requires you to add a simple cfset in your init() methos rather than adding true annotations and reading them via getmetadata.

The bottom line is that if you'd like to move some (or all) of your bean definitions into your beans a la Google Guice, 0.62 lets you give it a shot.

I'm looking for feedback on how this should work before I implement it in a more elegant manner, but it's tested and working on my sites, so check it out and let me know what you think!

To add mixin injections (in addition to those described in your central bean config) add the following to your init() method (MUST be in the init() method):

<cfset variables.MixinObjectNameList="UserService,ProductService">

Replacing "UserService,ProductService" with a comma delimited list of bean names you want to inject.

wow gold's Gravatar ://
# Posted By wow gold | 6/10/09 4:37 AM
security front doors for homes's Gravatar Great technical concept related to the init() method shown in this post. I hope this post will really help the programmers in doing their job accurately and easily.
# Posted By security front doors for homes | 9/3/10 1:40 AM
adult toys sale's Gravatar Love is not a thing to understand.
Love is not a thing to feel.
Love is not a thing to give and receive.
Love is a thing only to become
And eternally be.

:// Adult toy
:// Adult toy store
:// Adult sex toys
# Posted By adult toys sale | 12/24/10 2:07 AM
MLB Jersey's Gravatar :// Authentic mlb Jersey
:// replica mlb jersey
:// wholesale mlb jersey
:// Cheap MLB Jersey
# Posted By MLB Jersey | 5/26/11 1:45 AM
beats by dre's Gravatar :// beats by dre
:// monster beats
:// beats by monster
:// monster beats by dre
:// monster headphone
# Posted By beats by dre | 8/1/11 6:42 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.5.006. | Protected by Akismet | Blog with WordPress