archiva-proxy CacheFailuresTransferTest and archiva-policies
CachedFailuresPolicyTest no pass running under spring applicationContext.

I've added a minimal Contextualizable support for components that do lookup
in the plexusContainer.

Some more work required to build full archiva with spring ;-)

2008/2/25, nicolas de loof <[EMAIL PROTECTED]>:
>
>
> > >
> > > This makes things more complex on the spring side. Is this a common
> > > use case
> > > or can we live without this feature ?
> >
> >
> > If that's not doable, can we throw an unsupported exception if it's
> > not given?
>
>
> An ApplicationContextException is thrown in such case on current codebase.
> I will investigate on supporting this feature if required. This doesn't seem
> so complex : iterate on fields an search the one that matches the
> requirement type...
>
> Nicolas.
>
>
> >
> > >
> > > I've found the bug in archiva-proxy CacheFailuresTransferTest :
> > > there was
> > > some plexus to spring mistakes, but the final issue is the
> > > requirement on
> > > RepositoryContentFactory for the Contextualizable interface, and
> > > direct
> > > access to the PlexusContainer.
> > >
> > > I plan to create a PlexusContainerAdapter to expose Spring beans
> > >
> > > Nicolas.
> > >
> > > 2008/2/25, Brett Porter <[EMAIL PROTECTED]>:
> > >>
> > >>
> > >> On 25/02/2008, at 10:23 PM, nicolas de loof wrote:
> > >>
> > >>> Can someone confirm the plexus behavior for IoC :
> > >>>
> > >>> When the target field is a Map or a Collection and no role-hint is
> > >>> specified, inject all component implementations
> > >>>
> > >>> When the target field is the component interface and no role-hint is
> > >>> specified, inject the no-hint component or the one with rol-hint
> > >>> "default".
> > >>
> > >>
> > >> Correct.
> > >>
> > >>
> > >>>
> > >>>
> > >>> Is there a special handling for "mock" role-hint ? I have some
> > >>> issues with
> > >>> component initialisation in archiva-proxy CacheFailureTransfertTest
> > >>> that
> > >>> seems to be related to MockArchivaConfiguration...
> > >>
> > >>
> > >> No - are you reading the CacheFailureTransferTest.xml file as a
> > >> plexus
> > >> descriptor?
> > >>
> > >> - Brett
> > >>
> > >>
> > >> --
> > >> Brett Porter
> > >> [EMAIL PROTECTED]
> > >> http://blogs.exist.com/bporter/
> > >>
> > >>
> >
> > --
> > Brett Porter
> > [EMAIL PROTECTED]
> > http://blogs.exist.com/bporter/
> >
> >
>

Reply via email to