@Override public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { ModelNode model = new ModelNode(); populateModel(operation, model); String moduleName = MODULE_NAME.resolveModelAttribute(context, model).asString(); String slot = MODULE_SLOT.resolveModelAttribute(context, model).asString(); ModuleIdentifier id = ModuleIdentifier.create(moduleName, slot); ModuleLoader loader = Module.getBootModuleLoader(); try { ModuleLoaderMXBean mxBean = getMxBean(loader); ModuleInfo moduleInfo = mxBean.getModuleDescription(id.toString()); context.getResult().set(populateModuleInfo(moduleInfo)); } catch (Exception e) { throw ServerLogger.ROOT_LOGGER.couldNotGetModuleInfo(id.toString(), e); } }
@Override public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { ModelNode model = new ModelNode(); populateModel(operation, model); String moduleName = MODULE_NAME.resolveModelAttribute(context, model).asString(); String slot = MODULE_SLOT.resolveModelAttribute(context, model).asString(); ModuleIdentifier id = ModuleIdentifier.create(moduleName, slot); ModuleLoader loader = Module.getBootModuleLoader(); try { ModuleLoaderMXBean mxBean = getMxBean(loader); ModuleInfo moduleInfo = mxBean.getModuleDescription(id.toString()); context.getResult().set(populateModuleInfo(moduleInfo)); } catch (Exception e) { throw ServerLogger.ROOT_LOGGER.couldNotGetModuleInfo(id.toString(), e); } }