Class PluginInfo

java.lang.Object
org.apache.solr.core.PluginInfo
All Implemented Interfaces:
org.apache.solr.common.MapSerializable

public class PluginInfo extends Object implements org.apache.solr.common.MapSerializable
An Object which represents a Plugin of any type
  • Field Details

  • Constructor Details

    • PluginInfo

      public PluginInfo(String type, Map<String,String> attrs, org.apache.solr.common.util.NamedList<?> initArgs, List<PluginInfo> children)
    • PluginInfo

      public PluginInfo(org.apache.solr.common.ConfigNode node, String err, boolean requireName, boolean requireClass)
      From XML.
    • PluginInfo

      public PluginInfo(String type, Map<String,Object> map)
  • Method Details

    • parseClassName

      public static PluginInfo.ClassName parseClassName(String name)
      class names can be prefixed with package name e.g: my_package:my.pkg.Class This checks if it is a package name prefixed classname. the return value has first = package name and second = class name
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isEnabled

      public boolean isEnabled()
    • isDefault

      public boolean isDefault()
    • getChild

      public PluginInfo getChild(String type)
    • toMap

      public Map<String,Object> toMap(Map<String,Object> map)
      Specified by:
      toMap in interface org.apache.solr.common.MapSerializable
    • getChildren

      public List<PluginInfo> getChildren(String type)
      Filter children by type
      Parameters:
      type - The type name. must not be null
      Returns:
      The matching children
    • isFromSolrConfig

      public boolean isFromSolrConfig()
    • copy

      public PluginInfo copy()