(
String type, Map<String, String> attrs, NamedList<?> initArgs, List<PluginInfo> children)
| 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 |
nothing calls this directly
no test coverage detected