MCPcopy Create free account
hub / github.com/apache/solr / PluginInfo

Method PluginInfo

solr/core/src/java/org/apache/solr/core/PluginInfo.java:47–64  ·  view source on GitHub ↗
(
      String type, Map<String, String> attrs, NamedList<?> initArgs, List<PluginInfo> children)

Source from the content-addressed store, hash-verified

45 private boolean isFromSolrConfig;
46
47 public PluginInfo(
48 String type, Map<String, String> attrs, NamedList<?> initArgs, List<PluginInfo> children) {
49 this.type = type;
50 this.name = attrs.get(NAME);
51 cName = parseClassName(attrs.get(CLASS_NAME));
52 this.className = cName.className;
53 this.pkgName = cName.pkg;
54 // Make a shallow copy for type safety
55 this.initArgs = new NamedList<>();
56 if (initArgs != null) {
57 for (Map.Entry<String, ?> entry : initArgs) {
58 this.initArgs.add(entry.getKey(), entry.getValue());
59 }
60 }
61 attributes = unmodifiableMap(attrs);
62 this.children = children == null ? List.of() : unmodifiableList(children);
63 isFromSolrConfig = false;
64 }
65
66 /**
67 * class names can be prefixed with package name e.g: my_package:my.pkg.Class This checks if it is

Callers

nothing calls this directly

Calls 15

parseClassNameMethod · 0.95
loadSubPluginsMethod · 0.95
attrRequiredMethod · 0.80
getMethod · 0.65
addMethod · 0.65
getKeyMethod · 0.65
getValueMethod · 0.65
nameMethod · 0.65
attrMethod · 0.65
childNodesToNamedListMethod · 0.65
attributesMethod · 0.65
ofMethod · 0.45

Tested by

no test coverage detected