[jboss-jira] [JBoss JIRA] (WFCORE-1828) Make it easier to register add and remove handlers with customized definitions

Brian Stansberry (JIRA) issues at jboss.org
Mon Sep 26 17:25:00 EDT 2016


Brian Stansberry created WFCORE-1828:
----------------------------------------

             Summary: Make it easier to register add and remove handlers with customized definitions
                 Key: WFCORE-1828
                 URL: https://issues.jboss.org/browse/WFCORE-1828
             Project: WildFly Core
          Issue Type: Enhancement
          Components: Domain Management
            Reporter: Brian Stansberry
            Assignee: Tomaz Cerar
            Priority: Minor


The nice way to build up a ResourceDefinition is with the Parameters object. And that works well with most add and remove handlers where the RD when building up the MRR generates a definition for the handlers.

But in cases where there needs to be some customization of the add description (e.g. deployment(-overlay) add where the content param can have fields that are not used in the content attribute) then the only option is in some way or other to override registerOperations. That or have the add OSH implement DescriptionProvider. Which we don't want. ;)

Perhaps add setAddDescription/setRemoveDescription to Parameters, or 

{code}
public interface SelfDescibingOperationStepHandler extends OperationStepHandler {
  OperationDefinition getDefinition();
}
{code}

Enhancing Parameters sound better.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list