jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r1855470 - /jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/impl/PackagingImpl.java
Date Thu, 14 Mar 2019 00:46:24 GMT
Author: tripod
Date: Thu Mar 14 00:46:23 2019
New Revision: 1855470

URL: http://svn.apache.org/viewvc?rev=1855470&view=rev
Log:
JCRVLT-332 - fixing osgi reference (dynamic reference policy & volatiā€¦ (closes #42)

Modified:
    jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/impl/PackagingImpl.java

Modified: jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/impl/PackagingImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/impl/PackagingImpl.java?rev=1855470&r1=1855469&r2=1855470&view=diff
==============================================================================
--- jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/impl/PackagingImpl.java
(original)
+++ jackrabbit/commons/filevault/trunk/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/impl/PackagingImpl.java
Thu Mar 14 00:46:23 2019
@@ -33,6 +33,7 @@ import org.osgi.service.component.annota
 import org.osgi.service.component.annotations.Component;
 import org.osgi.service.component.annotations.Reference;
 import org.osgi.service.component.annotations.ReferenceCardinality;
+import org.osgi.service.component.annotations.ReferencePolicy;
 import org.osgi.service.metatype.annotations.AttributeDefinition;
 import org.osgi.service.metatype.annotations.Designate;
 import org.osgi.service.metatype.annotations.ObjectClassDefinition;
@@ -61,8 +62,9 @@ public class PackagingImpl implements Pa
     // In case a PackageRegistry is exposed as OSGi Service this will be considered
     // as base registry to fall back for dependency checks - currently only FSPackageRegistry
is exposed as such
     // currently no support for multiple registered PackageRegistries (OSGi Framework will
will pick first found)
-    @Reference (cardinality = ReferenceCardinality.OPTIONAL)
-    private PackageRegistry baseRegistry = null;
+    @Reference (cardinality = ReferenceCardinality.OPTIONAL,
+            policy = ReferencePolicy.DYNAMIC)
+    private volatile PackageRegistry baseRegistry;
 
     /**
      * package manager is a singleton



Mime
View raw message