Hi

I have transfer setup up in my applications coldspring, and i'm wondering
whether its ok to ask cs to create an instance of transfer.com.Transfer
using the factory-bean/factory-method attributes, rather than having to do
transferFactory.getTransfer() everywhere.  I have the following bean
definitions for transfer

<beans>

    <bean id="transferConfiguration"
class="transfer.com.config.Configuration">
        <constructor-arg
name="datasourcePath"><value>/config/transfer/Datasource.xml</value></constructor-arg>
        <constructor-arg
name="configPath"><value>/config/transfer/Transfer.xml</value></constructor-arg>
        <constructor-arg
name="definitionPath"><value>/model/data</value></constructor-arg>
    </bean>

    <bean id="transferFactory" class="transfer.TransferFactory">
        <constructor-arg name="configuration"><ref
bean="transferConfiguration" /></constructor-arg>
    </bean>

    <bean id="transfer" class="transfer.com.Transfer"
        factory-bean="transferFactory"
        factory-method="getTransfer">
    </bean>

</beans>

Is that a reasonable way to go ?

cheers, Chris

--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to