You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2021/03/10 09:45:51 UTC

[lucene] 10/21: javadoc

This is an automated email from the ASF dual-hosted git repository.

dweiss pushed a commit to branch jira/solr14155
in repository https://gitbox.apache.org/repos/asf/lucene.git

commit 97b1331c507bbd0d0dda4fac7cddae5c931ca61f
Author: noble <no...@apache.org>
AuthorDate: Fri Dec 27 11:55:43 2019 +1100

    javadoc
---
 solr/core/src/java/org/apache/solr/pkg/PackageListeners.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/solr/core/src/java/org/apache/solr/pkg/PackageListeners.java b/solr/core/src/java/org/apache/solr/pkg/PackageListeners.java
index 3d13ad8..59c10d5 100644
--- a/solr/core/src/java/org/apache/solr/pkg/PackageListeners.java
+++ b/solr/core/src/java/org/apache/solr/pkg/PackageListeners.java
@@ -118,6 +118,12 @@ public class PackageListeners {
 
   public class Ctx {
     private Map<String, Runnable > postProcessors;
+
+    /**A post processor will be run after all the listeners are invoked. This is particularly helpful
+     * if a group of plugins need to be reloaded all at once.  The case in point is schema plugins.
+     * If there are multiple plugins loade from packages in a schema, we would like to reload it only once
+     *
+     */
     public void addPostProcessor(String name, Runnable runnable){
       if(postProcessors == null) postProcessors = new HashMap<>();
       postProcessors.put(name, runnable);