incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Yadav <bhais...@apache.org>
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
it.

Regards.

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

Mime
View raw message