[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 Apr 2 22:17:00 EDT 2018


     [ https://issues.jboss.org/browse/WFCORE-1828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry resolved WFCORE-1828.
--------------------------------------
    Resolution: Won't Do


I don't like this idea.

> 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
>            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
(v7.5.0#75005)


More information about the jboss-jira mailing list