Hi Marc,

Your right there is a choice, 99% of the time your going to want to let MG
handle your controllers and injecting beans from CS into them using the
beans attribute in your xml or metadata.

==== you should probably ignore the rest of this info ====

It is possible to tell MG that you've already defined your controller in
coldspring, to do this just tell MG the name of the coldspring bean.

<controller id="MyControllerFromColdSpring" bean="MyController" />
note the singular *bean* attribute.
This is still supported for backward compatibility, but may be missing from
the docs.

AOP on controllers is not currently possible out of the box as it breaks
bean injection, but it is possible, just not often very useful.

Cheers, Chris





On 18 January 2011 23:14, marc <[email protected]> wrote:

> Ok, I got it working now.
>
> Dan, I went for the composition method as you suggested. Thanks for
> clarifying the difference between inheritance / composition and AOP.
> Chris, I figured out how to extend the controller. Easy indeed.
> I vaguely remember that u have the choice to let MG handle Controllers
> or have Coldspring do it. Wasn't that mentioned in the docs somewhere?
> And is there an advantage one over the other?
>
> Thanks again,
>
> Marc
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> 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]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en
>

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

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

Reply via email to