Esempio n. 1
0
 @Override
 public void updateModel(
     OperationContext context,
     ModelNode model,
     AttributeDefinition attributeDefinition,
     ModelNode attribute)
     throws OperationFailedException {
   if (attribute.getType() != ModelType.LIST
       && attributeDefinition.getType() != ModelType.LIST) {
     throw ControllerLogger.MGMT_OP_LOGGER.attributeIsWrongType(
         attributeDefinition.getName(), ModelType.LIST, attributeDefinition.getType());
   }
   updateModel(context, model, attribute);
 }