kwin commented on code in PR #1352:
URL: https://github.com/apache/jackrabbit-oak/pull/1352#discussion_r1521964160


##########
oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexProviderService.java:
##########
@@ -368,13 +349,19 @@ public class LuceneIndexProviderService {
     private PropertyIndexCleaner cleaner;
     private AsyncIndexesSizeStatsUpdate asyncIndexesSizeStatsUpdate;
 
+    private boolean enableCopyOnRead = true;
+    private boolean enableCopyOnWrite = true;
+
     @Activate
-    private void activate(BundleContext bundleContext, Map<String, ?> config) 
throws IOException {
+    private void activate(BundleContext bundleContext, ComponentContext 
componentContext, Configuration config) throws IOException {

Review Comment:
   As said above mixing regular properties with component property types is 
rarely necessary, also instead of injecting the ComponentContext you can rely 
on a Map to inject component properties if it would be necessary 
(https://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.component.html#service.component-activation.objects)



-- 
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: dev-unsubscr...@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to