Skip to content

Commit

Permalink
[WFCORE-4875] Provide common capability for Remoting connectors.
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmatowicz committed Mar 18, 2020
1 parent 8f94308 commit fcf262e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public class ConnectorResource extends SimpleResourceDefinition {
private static final String CONNECTOR_CAPABILITY_NAME = "org.wildfly.remoting.connector";
static final RuntimeCapability<Void> CONNECTOR_CAPABILITY =
RuntimeCapability.Builder.of(CONNECTOR_CAPABILITY_NAME, true)
.setAllowMultipleRegistrations(true)
.build();

//FIXME is this attribute still used?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import static org.jboss.as.remoting.CommonAttributes.HTTP_CONNECTOR;
import static org.jboss.as.remoting.ConnectorCommon.SASL_PROTOCOL;
import static org.jboss.as.remoting.ConnectorCommon.SERVER_NAME;
import static org.jboss.as.remoting.ConnectorResource.CONNECTOR_CAPABILITY;

import org.jboss.as.controller.OperationStepHandler;
import org.jboss.as.controller.PathElement;
Expand Down Expand Up @@ -85,7 +86,8 @@ private HttpConnectorResource() {
super(new Parameters(PATH, RemotingExtension.getResourceDescriptionResolver(HTTP_CONNECTOR))
.setAddHandler(HttpConnectorAdd.INSTANCE)
.setRemoveHandler(HttpConnectorRemove.INSTANCE)
.setCapabilities(HTTP_CONNECTOR_CAPABILITY));
// expose a common connector capability (WFCORE-4875)
.setCapabilities(CONNECTOR_CAPABILITY, HTTP_CONNECTOR_CAPABILITY));
}

@Override
Expand Down

0 comments on commit fcf262e

Please sign in to comment.