Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Wrap SimpleArtifactRepository

Hi Pascal,

I just started revisiting this issue.

Is there a mechanism to inject a repo manager, perhaps in the branch that I could investigate?

Thanks,

Henrich

>
> p2 does not have any explicit support to allow for the replacement
> of a repository.
> The mechanisms that could be use for that are:
> 1) Replace the implementation of the artifact repository manager by
> setting a your own implementation in the IProvisioningAgent. This
> would have to be done for every instance of the agent that can be created
> 2) Remove the extension for the SimpleArtifactRepository from the
> extension registry by either using the equinox.transform bundle, or
> using the registry API
> 3) Add a mechanism to p2 artifact repository manager to control the
> look up order of the factories, thus allowing your instance to
> always be first used
>
> HTH
>
> Henrich Kraemer ---03/12/2009 08:28:51 PM---I would like to have
> some code which monitors (some) calls made to the simple artifact repository.

>
>
> From:

>
>
> Henrich Kraemer <henrich.kraemer@xxxxxxxxxx>

>
>
> To:

>
>
> P2 developer discussions <p2-dev@xxxxxxxxxxx>

>
>
> Date:

>
>
> 03/12/2009 08:28 PM

>
>
> Subject:

>
>
> [p2-dev] Wrap SimpleArtifactRepository

>
>
>
>
> I would like to have some code which monitors (some) calls made to
> the simple artifact repository.
>
> My initial plan was to implement a class
> WrappedSimpleArtifactRepository which has a single constructor to
> which the p2 simple artifact repository is passed in.
>
> Then there would be a factory WrappedSimpleArtifactRepositoryFactory
> which creates or loads the simple artifact repository and then wraps
> it into the in WrappedSimpleArtifactRepository.
>
> If I am not mistaken there is however no way to make
> WrappedSimpleArtifactRepositoryFactory be used instead of
> SimpleArtifactRepositoryFactory.?
> If there is no way is the envisioned way to provide my own
> IArtifactRepositoryManager service which then can wrap the simple
> artifact repository? How to ensure that this is done early enough?
>
> Does WrappedSimpleArtifactRepository have to implement equals and
> hashCode perhaps mirroring the implementation in AbstractArtifactRepository?
>
> Thanks,
>
> Henrich_______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev
>
> [attachment "graycol.gif" deleted by Henrich Kraemer/Beaverton/IBM]
> [attachment "ecblank.gif" deleted by Henrich Kraemer/Beaverton/IBM]
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev


Back to the top