Skip to main content

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

In the R3_6_api_cleanup branch you should be able to define a new ArtifactRepositoryManager using DS market or simply injecting the instance you need in the components you wnat to change.


Inactive hide details for Henrich Kraemer ---04/01/2010 11:09:05 PM---Hi Pascal,Henrich Kraemer ---04/01/2010 11:09:05 PM---Hi Pascal,


From:

Henrich Kraemer <henrich.kraemer@xxxxxxxxxx>

To:

P2 developer discussions <p2-dev@xxxxxxxxxxx>

Date:

04/01/2010 11:09 PM

Subject:

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_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev


GIF image

GIF image


Back to the top