Skip to content

Commit

Permalink
Use a better variable name for the deployments endpoint model.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamezp committed Apr 20, 2015
1 parent ef4715b commit 69f0404
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -60,19 +60,19 @@ public void start(final Deployment dep) {
final DeploymentResourceSupport deploymentResourceSupport = unit.getAttachment(Attachments.DEPLOYMENT_RESOURCE_SUPPORT); final DeploymentResourceSupport deploymentResourceSupport = unit.getAttachment(Attachments.DEPLOYMENT_RESOURCE_SUPPORT);


for (final Endpoint endpoint : dep.getService().getEndpoints()) { for (final Endpoint endpoint : dep.getService().getEndpoints()) {
ModelNode op = null; final ModelNode endpointModel;
try { try {
op = deploymentResourceSupport.getDeploymentSubModel(WSExtension.SUBSYSTEM_NAME, endpointModel = deploymentResourceSupport.getDeploymentSubModel(WSExtension.SUBSYSTEM_NAME,
PathElement.pathElement(ENDPOINT, URLEncoder.encode(getId(endpoint), "UTF-8"))); PathElement.pathElement(ENDPOINT, URLEncoder.encode(getId(endpoint), "UTF-8")));
} catch (final UnsupportedEncodingException e) { } catch (final UnsupportedEncodingException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }


op.get(ENDPOINT_NAME).set(getName(endpoint)); endpointModel.get(ENDPOINT_NAME).set(getName(endpoint));
op.get(ENDPOINT_CONTEXT).set(getContext(endpoint)); endpointModel.get(ENDPOINT_CONTEXT).set(getContext(endpoint));
op.get(ENDPOINT_CLASS).set(endpoint.getTargetBeanName()); endpointModel.get(ENDPOINT_CLASS).set(endpoint.getTargetBeanName());
op.get(ENDPOINT_TYPE).set(endpoint.getType().toString()); endpointModel.get(ENDPOINT_TYPE).set(endpoint.getType().toString());
op.get(ENDPOINT_WSDL).set(endpoint.getAddress() + "?wsdl"); endpointModel.get(ENDPOINT_WSDL).set(endpoint.getAddress() + "?wsdl");
} }
} }


Expand Down

0 comments on commit 69f0404

Please sign in to comment.