Google Groups Home
Help | Sign in
Sample use of "depends" in CFCs
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
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
<jorge_loyo>  
View profile
 More options May 12, 11:29 pm
From: "<jorge_loyo>" <jorgeloyo.accou...@gmail.com>
Date: Mon, 12 May 2008 20:29:04 -0700 (PDT)
Local: Mon, May 12 2008 11:29 pm
Subject: Sample use of "depends" in CFCs
What is the difference between injecting beans with CS and using the
new "depends" attribute for automatically wire beans.

Is there some sample code?

I currently write the get/set methods in my listeners and have
ColdspringProperty resolve Mach-II dependencies.

Does the new "depends" attribute removes the necessity to write the
get/set methods myself?

Thanks for helping me with this one :-)


    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.
<jorge_loyo>  
View profile
 More options May 12, 11:47 pm
From: "<jorge_loyo>" <jorgeloyo.accou...@gmail.com>
Date: Mon, 12 May 2008 20:47:19 -0700 (PDT)
Local: Mon, May 12 2008 11:47 pm
Subject: Re: Sample use of "depends" in CFCs
From what I understand from the presentation, I could reference a
"getUtils()" method that doesn't actually exists in the listener as
long as I include depends="Utils" in a CFC that extends the framework.

Is this correct? If so, is the ColdSpringProperty parameter to resolve
Mach-II dependencies needed?


    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.
Peter J. Farrell  
View profile
 More options May 13, 2:37 am
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Tue, 13 May 2008 06:37:34 +0000
Local: Tues, May 13 2008 2:37 am
Subject: Re: [Mach-II] Re: Sample use of "depends" in CFCs
You need to use the MachII.properties.ColdspringProperty in 1.6. Define all beans you want from CS in the depends attribute in your cfcomponent tag. Depends takes a comma delimited list of bean names. You do not need to define any setters/getters as the CS property atuomagically creates and injects them for you via mixins. This works on framework level components only (I.e. Listeners, filters) and cannot be used on beans managed by CS as this is not a CS feature but unique to our CS loader.

HTH,
.Peter

-----Original Message-----
From: "<jorge_loyo>" <jorgeloyo.accou...@gmail.com>

Date: Mon, 12 May 2008 20:47:19
To:Mach-II for ColdFusion <mach-ii-for-coldfusion@googlegroups.com>
Subject: [Mach-II] Re: Sample use of "depends" in CFCs

>From what I understand from the presentation, I could reference a

"getUtils()" method that doesn't actually exists in the listener as
long as I include depends="Utils" in a CFC that extends the framework.

Is this correct? If so, is the ColdSpringProperty parameter to resolve
Mach-II dependencies needed?


    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.
Jorge Loyo  
View profile
 More options May 13, 11:31 am
From: Jorge Loyo <jorgeloyo.accou...@gmail.com>
Date: Tue, 13 May 2008 08:31:06 -0700 (PDT)
Local: Tues, May 13 2008 11:31 am
Subject: Re: Sample use of "depends" in CFCs
Nice... Smaller listeners AND if I change location of the CFCs that my
listeners are injected with I don't have to freak out about changing
the path to the getter/setter methods with a massive find/replace.

Very nice...


    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.
End of messages
« Back to Discussions « Newer topic     Older topic »

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