You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by "jsedding (via GitHub)" <gi...@apache.org> on 2024/07/22 13:13:08 UTC
Re: [PR] OAK-6773: Convert oak-store-composite to OSGi R7 annotations [jackrabbit-oak]
jsedding commented on code in PR #1489:
URL: https://github.com/apache/jackrabbit-oak/pull/1489#discussion_r1686493310
##########
oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/CrossMountReferenceValidatorProvider.java:
##########
@@ -80,4 +82,18 @@ CrossMountReferenceValidatorProvider withFailOnDetection(boolean failOnDetection
this.failOnDetection = failOnDetection;
return this;
}
+
+ @SuppressWarnings("unused")
+ @Reference(name = "mountInfoProvider", service = MountInfoProvider.class)
Review Comment:
You _could_ remove the explicit `service = MountInfoProvider.class`, as it is inferred from the method signature.
##########
oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/CompositeNodeStoreService.java:
##########
@@ -260,6 +265,7 @@ private void unregisterCompositeNodeStore() throws IOException {
}
@SuppressWarnings("unused")
+ @Reference(name = "nodeStores", cardinality = ReferenceCardinality.AT_LEAST_ONE, policy = ReferencePolicy.DYNAMIC, service = NodeStoreProvider.class, target="(!(service.pid=org.apache.jackrabbit.oak.composite.CompositeNodeStore))")
Review Comment:
Can we split this into multiple lines, like for `bindMountInfoProvider`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: oak-dev-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org