incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Yadav <>
Subject Re: what's rule for using @Component and xml bean file
Date Sat, 09 Feb 2013 04:28:43 GMT
So, the rule of thumb is that if you want to give the sysadmin an
option to disable a component (like a plugin for example), you define
that bean (name, class map) in a context xml file, else you use the
@Component annotation on the class (generally an impl) so spring
creates a singleton/bean and autowires/injects wherever you may need


On Sat, Feb 9, 2013 at 7:09 AM, Frank Zhang <> wrote:
> I see client/tomcatconf/ defining lots of beans while I also see
many beans use @Component
> Is there any guideline here?

View raw message