On Thu, Nov 27, 2008 at 5:54 PM, Andrew <[EMAIL PROTECTED]> wrote:
> <alias alias="ormAdapter" name="ormAdapter.Transfer" />
Keep that in the child.
> <alias alias="ormService" name="ormService.Transfer" />
Change that to:
<alias alias="ormService" name="transferFactory" />
(and keep it in the child)
Then add a transferFactory bean definition to the parent XML (defined
exactly like MG's ormService.Transfer bean, just renamed). Like this:
<bean id="transferFactory" class="transfer.TransferFactory">
<constructor-arg name="configuration"><ref
bean="transferConfiguration" /></constructor-arg>
</bean>
> <bean id="transferConfiguration"
> class="transfer.com.config.Configuration">
> <constructor-arg name="datasourcePath"><value>/admin/config/
> transfer/Datasource.xml</value></constructor-arg>
> <constructor-arg
> name="configPath"><value>/admin/config/transfer/
> Transfer.xml</value></constructor-arg>
> <constructor-arg
> name="definitionPath"><value>/admin/model/data/
> transfer</value></constructor-arg>
> </bean>
Move that into the parent XML.
> <bean id="Transfer" factory-bean="ormService" factory-
> method="getTransfer" />
> <bean id="transaction" factory-bean="ormService" factory-
> method="getTransaction" />
Change "ormService" to "transferFactory" and move them into the parent XML.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" 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/model-glue?hl=en
For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---