src/main/java/com/s24/search/solr/analysis/SearcherAwareReloader.java
private void inform(String type, String name, Object o, SolrIndexSearcher searcher) {
      if (o instanceof SearcherAware) {
         logger.info("Informing searcher aware {} ({}) of field type {} about a new searcher.",
               type, o.getClass().getName(), name);
         try {
            ((SearcherAware) o).inform(searcher);
         } catch (IOException e) {
            logger.error("Failed to inform {} ({}) of field type {} about a new searcher.",
                  type, o.getClass().getName(), name, e);
            throw new IllegalArgumentException("Failed to inform about a new searcher.", e);
         }
      }
   }
private void inform(String type, String name, Object o, SolrIndexSearcher searcher) {
      if (o instanceof SearcherAware) {
         logger.info("Informing searcher aware {} ({}) of field type {} about a new searcher.",
               type, o.getClass().getName(), name);
         try {
            ((SearcherAware) o).inform(searcher);
         } catch (IOException e) {
            logger.error("Failed to inform {} ({}) of field type {} about a new searcher.",
                  type, o.getClass().getName(), name, e);
            throw new IllegalArgumentException("Failed to inform about a new searcher.", e);
         }
      }
   }
private void inform ( String type , String name , Object o , SolrIndexSearcher searcher ) { if ( o instanceof SearcherAware ) { logger . info ( "Informing searcher aware {} ({}) of field type {} about a new searcher." , type , o . getClass ( ) . getName ( ) , name ) ; try { ( ( SearcherAware ) o ) . inform ( searcher ) ; } catch ( IOException e ) { logger . error ( "Failed to inform {} ({}) of field type {} about a new searcher." , type , o . getClass ( ) . getName ( ) , name , e ) ; throw new IllegalArgumentException ( "Failed to inform about a new searcher." , e ) ; } } }
Inform {@link SearcherAware} about a new searcher.

@param type
Description of concrete type of the {@link SearcherAware}.
@param name
Name of the field type.
@param o
The {@link SearcherAware}.
@param searcher
The new searcher.
Inform { @link SearcherAware } about a new searcher .