handlerCtx.setOutputValue("enabled", Boolean.TRUE);
handlerCtx.setOutputValue("resAdapter", "");
return;
}
String jndiName = (String) handlerCtx.getInputValue("jndiName");
AdminObjectResourceConfig resource = AMXUtil.getDomainConfig().getAdminObjectResourceConfigMap().get(jndiName);
if (resource == null){
GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.NoSuchAdminObjectResource"));
return;
}
handlerCtx.setOutputValue("resType", resource.getResType());
handlerCtx.setOutputValue("resAdapter", resource.getResAdapter());
handlerCtx.setOutputValue("description", resource.getDescription());
if(AMXUtil.isEE())
handlerCtx.setOutputValue("enabledString", TargetUtil.getEnabledStatus(resource, false));
else
handlerCtx.setOutputValue("enabled", TargetUtil.isResourceEnabled(resource, "server" ));
Map<String, String> props = resource.getProperties();
handlerCtx.setOutputValue("properties", props);
}