diff --git a/controller/src/main/java/org/jboss/as/controller/SimpleResourceDefinition.java b/controller/src/main/java/org/jboss/as/controller/SimpleResourceDefinition.java index 7eebde58964..08cf60dda59 100644 --- a/controller/src/main/java/org/jboss/as/controller/SimpleResourceDefinition.java +++ b/controller/src/main/java/org/jboss/as/controller/SimpleResourceDefinition.java @@ -217,6 +217,7 @@ protected void registerAddOperation(final ManagementResourceRegistration registr .setParameters(this.getAddOperationParameters(registration)) .setDescriptionProvider(descriptionProvider) .setEntryType(OperationEntry.EntryType.PUBLIC) + .setStability(registration.getStability()) .withFlags(flags) .build(); registration.registerOperationHandler(definition, handler); @@ -234,6 +235,7 @@ protected void registerRemoveOperation(final ManagementResourceRegistration regi OperationDefinition definition = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.REMOVE, this.descriptionResolver) .setDescriptionProvider(descriptionProvider) .setEntryType(OperationEntry.EntryType.PUBLIC) + .setStability(registration.getStability()) .withFlags(flags) .build(); registration.registerOperationHandler(definition, handler); diff --git a/subsystem/src/main/java/org/wildfly/subsystem/resource/ResourceDescriptorRegistrar.java b/subsystem/src/main/java/org/wildfly/subsystem/resource/ResourceDescriptorRegistrar.java index a9558efb631..7c5d1489c90 100644 --- a/subsystem/src/main/java/org/wildfly/subsystem/resource/ResourceDescriptorRegistrar.java +++ b/subsystem/src/main/java/org/wildfly/subsystem/resource/ResourceDescriptorRegistrar.java @@ -132,6 +132,7 @@ public void register(ManagementResourceRegistration registration) { OperationDefinition addDefinition = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.ADD, this.descriptor.getResourceDescriptionResolver()) .setParameters(attributes.toArray(AttributeDefinition[]::new)) .setDescriptionProvider(new DefaultResourceAddDescriptionProvider(registration, this.descriptor.getResourceDescriptionResolver(), ordered)) + .setStability(registration.getStability()) .withFlag(this.descriptor.getAddOperationRestartFlag()) .build(); registration.registerOperationHandler(addDefinition, this.descriptor.getAddOperationTransformation().apply(new AddResourceOperationStepHandler(this.descriptor))); @@ -139,6 +140,7 @@ public void register(ManagementResourceRegistration registration) { // Register remove resource operation handler OperationDefinition removeDefinition = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.REMOVE, this.descriptor.getResourceDescriptionResolver()) .setDescriptionProvider(new DefaultResourceRemoveDescriptionProvider(this.descriptor.getResourceDescriptionResolver())) + .setStability(registration.getStability()) .withFlag(this.descriptor.getRemoveOperationRestartFlag()) .build(); registration.registerOperationHandler(removeDefinition, this.descriptor.getResourceOperationTransformation().apply(new RemoveResourceOperationStepHandler(this.descriptor)));