Interface ManagedResourceObserver

All Known Implementing Classes:
BaseManagedTokenFilterFactory, ManagedStopFilterFactory, ManagedSynonymGraphFilterFactory

public interface ManagedResourceObserver
Allows a Solr component to register as an observer of important ManagedResource events, such as when the managed data is loaded.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onManagedResourceInitialized(org.apache.solr.common.util.NamedList<?> args, ManagedResource res)
    Event notification raised once during core initialization to notify listeners that a ManagedResource is fully initialized.
  • Method Details

    • onManagedResourceInitialized

      void onManagedResourceInitialized(org.apache.solr.common.util.NamedList<?> args, ManagedResource res) throws org.apache.solr.common.SolrException
      Event notification raised once during core initialization to notify listeners that a ManagedResource is fully initialized. The most common implementation of this method is to pull the managed data from the concrete ManagedResource and use it to initialize an analysis component. For example, the ManagedStopFilterFactory implements this method to receive the list of managed stop words needed to create a CharArraySet for the StopFilter.
      Throws:
      org.apache.solr.common.SolrException