Skip to content

Commit

Permalink
[EJBCLIENT-186] Automatically add EJB Remoting discovery provider to …
Browse files Browse the repository at this point in the history
…default discovery configuration
  • Loading branch information
dmlloyd committed Jan 18, 2017
1 parent c6d1488 commit f130c9c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<version.org.kohsuke.metainf-services>1.7</version.org.kohsuke.metainf-services>
<version.org.wildfly.common>1.2.0.Beta3</version.org.wildfly.common>
<version.org.wildfly.naming.client>1.0.0.Beta6</version.org.wildfly.naming.client>
<version.org.wildfly.discovery>1.0.0.Beta4</version.org.wildfly.discovery>
<version.org.wildfly.discovery>1.0.0.Beta5</version.org.wildfly.discovery>
<version.org.wildfly.security.elytron>1.1.0.Beta17</version.org.wildfly.security.elytron>
<version.org.wildfly.transaction-client>1.0.0.Beta3</version.org.wildfly.transaction-client>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* JBoss, Home of Professional Open Source.
* Copyright 2017 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.jboss.ejb.protocol.remote;

import java.util.function.Consumer;

import org.kohsuke.MetaInfServices;
import org.wildfly.discovery.spi.DiscoveryProvider;
import org.wildfly.discovery.spi.ExternalDiscoveryConfigurator;
import org.wildfly.discovery.spi.RegistryProvider;

@MetaInfServices
public final class RemoteEJBDiscoveryConfigurator implements ExternalDiscoveryConfigurator {
public void configure(final Consumer<DiscoveryProvider> discoveryProviderConsumer, final Consumer<RegistryProvider> registryProviderConsumer) {
discoveryProviderConsumer.accept(RemotingEJBDiscoveryProvider.INSTANCE);
}
}

0 comments on commit f130c9c

Please sign in to comment.