You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2018/11/30 12:01:14 UTC
[sling-ide-tooling] branch master updated: Prefer
VltRepositoryFactory over
org.apache.sling.ide.impl.resource.transport.RepositoryFactoryImpl in
Eclipse in case both are deployed
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-ide-tooling.git
The following commit(s) were added to refs/heads/master by this push:
new 14bd030 Prefer VltRepositoryFactory over org.apache.sling.ide.impl.resource.transport.RepositoryFactoryImpl in Eclipse in case both are deployed
14bd030 is described below
commit 14bd03067758055d7f5bd52e8891db1ef24e0652
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Fri Nov 30 13:01:01 2018 +0100
Prefer VltRepositoryFactory over
org.apache.sling.ide.impl.resource.transport.RepositoryFactoryImpl in
Eclipse in case both are deployed
Set a higher service.ranking to achieve that.
---
.../java/org/apache/sling/ide/impl/vlt/VltRepositoryFactory.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/shared/modules/impl-vlt/src/main/java/org/apache/sling/ide/impl/vlt/VltRepositoryFactory.java b/shared/modules/impl-vlt/src/main/java/org/apache/sling/ide/impl/vlt/VltRepositoryFactory.java
index 7d8c1ab..e969f48 100644
--- a/shared/modules/impl-vlt/src/main/java/org/apache/sling/ide/impl/vlt/VltRepositoryFactory.java
+++ b/shared/modules/impl-vlt/src/main/java/org/apache/sling/ide/impl/vlt/VltRepositoryFactory.java
@@ -30,9 +30,10 @@ import org.osgi.service.event.EventAdmin;
/**
* The <tt>VltRepositoryFactory</tt> instatiantes <tt>VltRepository</tt> instances
- *
+ * This service should get precedence over {@code org.apache.sling.ide.impl.resource.transport.RepositoryFactoryImpl} in
+ * case both are deployed in an OSGi container.
*/
-@Component(service = RepositoryFactory.class)
+@Component(service = RepositoryFactory.class, property="service.ranking:Integer=1000")
public class VltRepositoryFactory implements RepositoryFactory {
@Reference