Brian Stansberry created WFCORE-4163:
----------------------------------------
Summary: Easier API for creating capability ServiceNames from DUPs and
deployment services
Key: WFCORE-4163
URL:
https://issues.jboss.org/browse/WFCORE-4163
Project: WildFly Core
Issue Type: Enhancement
Components: Management
Reporter: Brian Stansberry
Assignee: Jeff Mesnil
Code like this is starting to proliferate:
CapabilityServiceSupport capabilityServiceSupport =
deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.CAPABILITY_SERVICE_SUPPORT);
ServiceName serviceName =
capabilityServiceSupport.getCapabilityServiceName("org.wildfly.foo.bar");
Perhaps just this?
ServiceName serviceName =
deploymentUnit.getCapabilityServiceName("org.wildfly.foo.bar");
--
This message was sent by Atlassian Jira
(v7.12.1#712002)