On 20/11/2008, at 3:13 PM, [EMAIL PROTECTED] wrote:

-    /**
-     * @plexus.requirement
-     */
    private ArchivaConfiguration configuration;

Is it possible to use the annotations so we have a closer match here?


public List<KnownRepositoryContentConsumer> getAvailableKnownConsumers()
    {
-        return availableKnownConsumers;
+ return new ArrayList (applicationContext .getBeansOfType(KnownRepositoryContentConsumer.class).values());
    }

Is it better to decouple this into a factory bean so that we don't look it up every time? I assume we don't want this changing between calls.


+    public class MockApplicationContext implements ApplicationContext


Spring doesn't provide some simple way to do this already?



+ consumers = (RepositoryContentConsumers )getApplicationContext().getBean("repositoryContentConsumers");

Are we going to come up with some scheme so plaintext IDs aren't being passed around?



Thanks,
Brett

--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/

Reply via email to