You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2007/12/07 00:17:50 UTC

[Solr Wiki] Update of "SolrPlugins" by ryan

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by ryan:
http://wiki.apache.org/solr/SolrPlugins

------------------------------------------------------------------------------
  
  }}}
  
+ 
+ = Plugin Initialization =
+ 
+ <!> ["Solr1.3"]
+ 
+ Plugins are initializes either with [http://svn.apache.org/repos/asf/lucene/solr/trunk/src/java/org/apache/solr/util/plugin/MapInitializedPlugin.java init( Map<String,String> args )] or [http://svn.apache.org/repos/asf/lucene/solr/trunk/src/java/org/apache/solr/util/plugin/NamedListInitializedPlugin.java init( NamedList args )].
+ 
+ == ResourceLoaderAware ==
+ Classes that need to know about the [http://svn.apache.org/repos/asf/lucene/solr/trunk/src/java/org/apache/solr/common/ResourceLoader.java ResourceLoader] can implement [http://svn.apache.org/repos/asf/lucene/solr/trunk/src/java/org/apache/solr/util/plugin/ResourceLoaderAware.java ResourceLoaderAware].  Valid ResourceLoaderAware include:
+  * TokenFilterFactory
+  * TokenizerFactory
+  * FieldType
+ 
+ == SolrCoreAware ==
+ Classes that need to know about the [SolrCore] can implement [http://svn.apache.org/repos/asf/lucene/solr/trunk/src/java/org/apache/solr/util/plugin/SolrCoreAware.java SolrCoreAware].  Valid SolrCoreAware classes include:
+  * SolrRequestHandler
+  * QueryResponseWriter
+  * SearchComponent
+ 
+ == Lifecycle ==
+ The initialization lifecycle is:
+  1. Constructor
+  2. ''init( Map / !NamedList )''
+  3. ResourceLoaderAware classes call: ''inform( !ResourceLoader );''
+  3. Before the first request is made and after all plugns have been created and registered, SolrCoreAware pluggins call: ''inform( SolrCore );''
+