Package org.apache.solr.core
Class PluginInfo
- java.lang.Object
-
- org.apache.solr.core.PluginInfo
-
- All Implemented Interfaces:
MapSerializable
public class PluginInfo extends Object implements MapSerializable
An Object which represents a Plugin of any type
-
-
Field Summary
Fields Modifier and Type Field Description static String
APPENDS
Map<String,String>
attributes
List<PluginInfo>
children
String
className
static String
DEFAULTS
static PluginInfo
EMPTY_INFO
NamedList
initArgs
static String
INVARIANTS
String
name
String
pkgName
String
type
-
Constructor Summary
Constructors Constructor Description PluginInfo(String type, Map<String,Object> map)
PluginInfo(String type, Map<String,String> attrs, NamedList initArgs, List<PluginInfo> children)
PluginInfo(Node node, String err, boolean requireName, boolean requireClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginInfo
copy()
PluginInfo
getChild(String type)
List<PluginInfo>
getChildren(String type)
Filter children by typeboolean
isDefault()
boolean
isEnabled()
boolean
isFromSolrConfig()
static Pair<String,String>
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.Map<String,Object>
toMap(Map<String,Object> map)
String
toString()
-
-
-
Field Detail
-
name
public final String name
-
className
public final String className
-
type
public final String type
-
pkgName
public final String pkgName
-
initArgs
public final NamedList initArgs
-
children
public final List<PluginInfo> children
-
EMPTY_INFO
public static final PluginInfo EMPTY_INFO
-
DEFAULTS
public static final String DEFAULTS
- See Also:
- Constant Field Values
-
APPENDS
public static final String APPENDS
- See Also:
- Constant Field Values
-
INVARIANTS
public static final String INVARIANTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
parseClassName
public static Pair<String,String> 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
-
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 interfaceMapSerializable
-
getChildren
public List<PluginInfo> getChildren(String type)
Filter children by type- Parameters:
type
- The type name. must not be null- Returns:
- The mathcing children
-
isFromSolrConfig
public boolean isFromSolrConfig()
-
copy
public PluginInfo copy()
-
-