You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@archiva.apache.org by Brett Porter <br...@apache.org> on 2008/11/20 05:25:20 UTC

Re: svn commit: r719157 - in /archiva/trunk/archiva-modules: archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/ archiva-base/archiva-consumers/archiva-core-consumers/src/main/resources/ archiva-base...

On 20/11/2008, at 3:13 PM, jdumay@apache.org 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
brett@apache.org
http://blogs.exist.com/bporter/