{@inheritDoc} @see net.opentsdb.tools.ConfigMetaType.FileListValidator#validate(net.opentsdb.tools.ConfigArgP.ConfigurationItem)
(final ConfigurationItem citem)
| 543 | * @see net.opentsdb.tools.ConfigMetaType.FileListValidator#validate(net.opentsdb.tools.ConfigArgP.ConfigurationItem) |
| 544 | */ |
| 545 | @Override |
| 546 | public void validate(final ConfigurationItem citem) { |
| 547 | super.validate(citem); |
| 548 | Set<URL> urls = buildURLSet(citem); |
| 549 | final MLet classLoader = new MLet(urls.toArray(new URL[urls.size()])); |
| 550 | try { |
| 551 | final ObjectName on = new ObjectName(String.format(CLASSLOADER_OBJECTNAME, citem.getKey())); |
| 552 | if(server.isRegistered(on)) { |
| 553 | server.unregisterMBean(on); |
| 554 | } |
| 555 | server.registerMBean(classLoader, on); |
| 556 | } catch (Exception ex) { |
| 557 | throw new IllegalArgumentException("Failed to create class loader for [" + citem.getName() + "]", ex); |
| 558 | } |
| 559 | |
| 560 | } |
| 561 | } |
| 562 | |
| 563 |
nothing calls this directly
no test coverage detected