Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Oberlies2012-04-12 13:55:29 +0000
committerTobias Oberlies2012-04-12 15:04:01 +0000
commitd104b01da65aa65a7b8cfa43287cef8dbebbe168 (patch)
treeb4d6217480d71c679876ae14f65e873e5cbef510 /bundles/org.eclipse.equinox.p2.tests/plugin.xml
parent4e22e50e855a886d2d3b2e662f17d1d50d0808d1 (diff)
downloadrt.equinox.p2-d104b01da65aa65a7b8cfa43287cef8dbebbe168.tar.gz
rt.equinox.p2-d104b01da65aa65a7b8cfa43287cef8dbebbe168.tar.xz
rt.equinox.p2-d104b01da65aa65a7b8cfa43287cef8dbebbe168.zip
347319 Allow repository factories which load repositories by URNsv20120412-1504
- Fix the response of the artifact/metadata repository factories in case that the location to be loaded is not a URL: the factories must return null or throw a ProvisionException with status REPOSITORY_NOT_FOUND in order to make sure that the manager continues to ask other factories. This allows to register a custom factory which for example looks up instances from a registry by uniform resource *identifiers* which are not uniform resource *locators*. - Added a test for loading from a custom, registry based repository factory. Bug: 347319 - [repository] SimpleArtifactRepositoryFactory prevents loading repositories from non-URL URIs
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/plugin.xml')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/plugin.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/plugin.xml b/bundles/org.eclipse.equinox.p2.tests/plugin.xml
index 3bf594c94..021e9cae4 100644
--- a/bundles/org.eclipse.equinox.p2.tests/plugin.xml
+++ b/bundles/org.eclipse.equinox.p2.tests/plugin.xml
@@ -99,4 +99,22 @@
class="org.eclipse.equinox.p2.tests.FailingMetadataRepositoryFactory">
</factory>
</extension>
+ <extension
+ point="org.eclipse.equinox.p2.metadata.repository.metadataRepositories">
+ <factory
+ class="org.eclipse.equinox.p2.tests.repository.RepositoryExtensionPointTest$TestMetadataRepositoryRegistry">
+ </factory>
+ <filter
+ suffix="@testMetadataRepositoryRegistry">
+ </filter>
+ </extension>
+ <extension
+ point="org.eclipse.equinox.p2.artifact.repository.artifactRepositories">
+ <factory
+ class="org.eclipse.equinox.p2.tests.repository.RepositoryExtensionPointTest$TestArtifactRepositoryRegistry">
+ </factory>
+ <filter
+ suffix="@testArtifactRepositoryRegistry">
+ </filter>
+ </extension>
</plugin>

Back to the top