static void reloadLuceneSPI(ClassLoader loader){
  PostingsFormat.reloadPostingsFormats(loader);
  DocValuesFormat.reloadDocValuesFormats(loader);
  Codec.reloadCodecs(loader);
  CharFilterFactory.reloadCharFilters(loader);
  TokenFilterFactory.reloadTokenFilters(loader);
  TokenizerFactory.reloadTokenizers(loader);
}

static void reloadLuceneSPI ( ClassLoader loader ) { PostingsFormat . reloadPostingsFormats ( loader ) ; DocValuesFormat . reloadDocValuesFormats ( loader ) ; Codec . reloadCodecs ( loader ) ; CharFilterFactory . reloadCharFilters ( loader ) ; TokenFilterFactory . reloadTokenFilters ( loader ) ; TokenizerFactory . reloadTokenizers ( loader ) ; }
reloads all lucene spi implementations using the new classloader . this method must be called after the new classloader has been created to register the services for use .
