[jboss-jira] [JBoss JIRA] (WFCORE-332) Allow RestartParentXXXHandlers to handle resources with multiple services
Brian Stansberry (JIRA)
issues at jboss.org
Fri Oct 6 17:08:00 EDT 2017
[ https://issues.jboss.org/browse/WFCORE-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry resolved WFCORE-332.
-------------------------------------
Resolution: Won't Do
The RestartParentXXXHandlers are there to support what I now see as an anti-pattern -- creating resources that are nothing but config chunks for a parent. Complex attributes on the real resource should be used. So I'd rather put energy into that than into enhancing RestartParent.
> Allow RestartParentXXXHandlers to handle resources with multiple services
> -------------------------------------------------------------------------
>
> Key: WFCORE-332
> URL: https://issues.jboss.org/browse/WFCORE-332
> Project: WildFly Core
> Issue Type: Feature Request
> Components: Domain Management
> Reporter: Richard Achmatowicz
> Assignee: Jason Greene
> Priority: Minor
>
> I'd like to use RestartParentWriteAttributeHandler to allow handling of attributes which, when updated, case a restart of only the services installed by their parent resource. These are really useful classes and solve a commonly encountered problem.
> However, the resource I want to restart involves four services, and it appears that RestartParentWriteAttriubuteHandler assumes that for every parent key name, there is only a single service registered.
> If we had the private methods:
> ServiceName[] getParentServiceNames(PathAddress address)
> boolean areParentServicesInstalled(ServiceName[] names)
> void removeServices(OperationContext context, ServiceNames[] names, ModelNode parentModel)
> this could be made to work for more general resources.
>
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list