Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-260

reusable PluginLoader -- helper class to load plugins

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None

      Description

      As we talk about adding more configuration (Handlers, Highlighting, Components, etc) we should standardize the format and share the loading and initialization code.

      This patch extracts the common stuff from SOLR-225 and makes it work with the RequestHandler framework.

      This is an abstract base class – each implementation needs to take care of actually creating and initializing the instances:

      abstract class PluginLoader<T>
      {
      abstract public T create( String className, NamedList args, Map<String,String> params );

      abstract public void init( T plugin, NamedList args, Map<String,String> params );

      public Map<String,T> load( NodeList nodes )

      { ... }

      }

        Attachments

        1. SOLR-260-PluginLoader.patch
          31 kB
          Ryan McKinley
        2. SOLR-260-PluginLoader.patch
          31 kB
          Ryan McKinley

          Issue Links

            Activity

              People

              • Assignee:
                ryantxu Ryan McKinley
                Reporter:
                ryantxu Ryan McKinley
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: