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 2010/04/13 16:04:29 UTC
[Solr Wiki] Update of "SolrPlugins" by RobertMuir
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "SolrPlugins" page has been changed by RobertMuir.
The comment on this change is: update trunk location.
http://wiki.apache.org/solr/SolrPlugins?action=diff&rev1=37&rev2=38
--------------------------------------------------
= Plugin Initialization =
<!> [[Solr1.3]]
- Plugins are initialized 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 )]].
+ Plugins are initialized either with [[http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/src/java/org/apache/solr/util/plugin/MapInitializedPlugin.java|init( Map<String,String> args )]] or [[http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/src/java/org/apache/solr/util/plugin/NamedListInitializedPlugin.java|init( NamedList args )]].
<!> [[Solr1.4]]
- Plugins can also be initialized with [[http://svn.apache.org/repos/asf/lucene/solr/trunk/src/java/org/apache/solr/util/plugin/PluginInfoInitialized.java|init( PluginInfo info )]]. These Plugins can have children ( any Subnode with a "class" attribute is considered a child ).
+ Plugins can also be initialized with [[http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/src/java/org/apache/solr/util/plugin/PluginInfoInitialized.java|init( PluginInfo info )]]. These Plugins can have children ( any Subnode with a "class" attribute is considered a child ).
If a pluginInfoInitialized Plugin wants to initialise these children in its {{{inform( core )}}} method via {{{ core.create.createInitInstance() }}}, the children must not be !SolrCoreAware.
- see [[http://svn.apache.org/repos/asf/lucene/solr/trunk/src/java/org/apache/solr/core/PluginInfo.java|PluginInfo]].
+ see [[http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/src/java/org/apache/solr/core/PluginInfo.java|PluginInfo]].
== 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:
+ Classes that need to know about the [[http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/src/java/org/apache/solr/common/ResourceLoader.java|ResourceLoader]] can implement [[http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/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]]. Classes implementing !SolrCoreAware must not have a dedicated Constructor. Valid !SolrCoreAware classes include:
+ Classes that need to know about the [SolrCore] can implement [[http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/src/java/org/apache/solr/util/plugin/SolrCoreAware.java|SolrCoreAware]]. Classes implementing !SolrCoreAware must not have a dedicated Constructor. Valid !SolrCoreAware classes include:
* SolrRequestHandler
* QueryResponseWriter