Ryan, I believe it's something Kelven added recently. Auto-Scanning via @Component has been disabled. There are numerous reasons why auto-scanning is bad. Take for example the case of someone extending a component with the @Component annotation, they don't want to modify the parent class at all but they only want their component to be loaded but because of auto-scanning both gets loaded. There are other cases of this. A declarative description is much better.
We apologize for the inconvenience this change has caused for you. Kelven should be able to give you better instructions on how to add it properly in the latest 4.1 branch. --Alex > -----Original Message----- > From: Ryan Dietrich [mailto:r...@betterservers.com] > Sent: Thursday, April 4, 2013 1:31 PM > To: dev@cloudstack.apache.org > Subject: Re: Plugin woes... > > I had this working yesterday and never touched componentContext.xml ... I > did a git pull this morning, and everything broke. I'm going off the current > documentation and some notes that Rohit++ sent me. > The current documentation does not mention anything about > componentContext.xml: > > https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+API+ > Development > > On Apr 4, 2013, at 2:27 PM, Kelven Yang <kelven.y...@citrix.com> wrote: > > > I have organized the componentContext.xml to be in plugin friendly > > style, I'll add a updated document for this as well. will commit to > > 4.1 today > > > > Kelven > > > > On 4/4/13 1:24 PM, "Alex Huang" <alex.hu...@citrix.com> wrote: > > > >> Ryan, > >> > >> Did you add it to componentscontext.xml? > >> > >> --Alex > >> > >>> -----Original Message----- > >>> From: Ryan Dietrich [mailto:r...@betterservers.com] > >>> Sent: Thursday, April 4, 2013 1:16 PM > >>> To: dev@cloudstack.apache.org > >>> Subject: Re: Plugin woes... > >>> > >>> Oh, I should mention I did this on the 4.1 branch. > >>> > >>> On Apr 4, 2013, at 2:10 PM, Ryan Dietrich <r...@betterservers.com> > >>> wrote: > >>> > >>>> I have written a test plugin, but it is not being picked up by spring. > >>>> > >>>> Specifically, I am looking at ApiDiscoveryServiceImpl.java > >>>> > >>>> @Inject protected List<PluggableService> _services = null; My > >>>> newly created @Component is now showing up in this list and I'm not > >>>> sure > >>> why. > >>>> > >>>> I'd like to add this to the wiki on plugins, but as it doesn't work > >>> anymore, I'd > >>> like to get it fixed first. > >>>> > >>>> http://pastebin.com/Yz8Yc18n > >>>> > >>>> > >> > >