Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-19478

Remove usage of deprecated SimpleResourceDefinition methods

XMLWordPrintable

      Switch to using the non-deprecated variant of this method that takes OperationStepHandler.

          /**
           * Overrides the default impl to use a special definition of the add op that includes additional parameter
           * {@link #DEFAULT_CLUSTERED_SFSB_CACHE}
           * {@inheritDoc}
           */
          @Override
          protected void registerAddOperation(ManagementResourceRegistration registration, AbstractAddStepHandler handler, OperationEntry.Flag... flags) {
              OperationDefinition od = new SimpleOperationDefinitionBuilder(ADD, getResourceDescriptionResolver())
                      .setParameters(ATTRIBUTES)
                      .addParameter(DEFAULT_CLUSTERED_SFSB_CACHE)
                      .withFlags(flags)
                      .build();
              registration.registerOperationHandler(od, handler);
          }
      

              lvydra Lukas Vydra
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: