How can I unsubscribe my second email address from this list so I stop getting dups?

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of Paul Roe
Sent: Thursday, March 09, 2006 3:05 PM
To: [email protected]
Subject: [coldspring-dev] help

 

sorry I wasn't clear, I want the csFactory to be the actual coldspring factory object that will be using the xml file

so when I create the factory:
<cfset application.csFactory = createObject("component"," SCAR.coldspring.beans.DefaultXmlBeanFactory").init() />

I  want this application.csFactory object to be passed into some of the services that it will create.


On 3/9/06, Chris Stoner <[EMAIL PROTECTED]> wrote:

Assuming that your csFactory is created in coldspring, I am pretty sure you can use <ref bean> to do this.  For example:

<bean id="CsFactory" class="my.cs.factory "></bean>

<bean id="BusinessUnit" class="BusinessUnit" singleton="true">
   <constructor-arg name="csFactory"><ref bean="CsFactory" /></constructor-arg>
</bean>

On 3/9/06, Paul Roe <[EMAIL PROTECTED] > wrote:

I know this is the coldspring-dev forum not the coldspring help forum, but I am having trouble trying to do something that I feel should be easy to do. I want to use the cs framework to pass a reference of the csFactory to one of my services.

-services.xml
<bean id="BusinessUnit" class="BusinessUnit" singleton="true">
   <constructor-arg name="csFactory"><value>${csFactory}</value></constructor-arg>
</bean>


So that in my BusinessUnit Service I can do this as the init

   <cffunction name="init" access="public" output="false" returntype="BusinessUnit">
   <cfargument name="csFactory" type="WEB-INF.cftags.component" required="true" />
        <cfscript>
            variables.instance = structNew();
           
            setFactory( arguments.csFactory);
            setDGO(getFactory().getBean("BusinessUnitDGO"));
            return this;
        </cfscript>
     </cffunction>


I know that mach-ii does this in a weird way but this seems like something that you should be able to do with the basic functionality in cs.  Of couse I haven't spent much time with the framework, so I am probably just missing something simple.

 

 

Reply via email to