org.wildfly.clustering.ejb.remote.RemoteEjbRequirement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-ejb-spi Show documentation
Show all versions of wildfly-clustering-ejb-spi Show documentation
A set of SPIs for managing distributable @Stateful bean instances for use by the the distributed Jakarta Enterprise Beans cache implementation found in the wildfly-ejb3 module.
This module decouples the mechanism for managing @Stateful bean instances from the Jakarta Enterprise Beans subsystem.
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.ejb.remote;
import org.jboss.as.clustering.controller.RequirementServiceNameFactory;
import org.jboss.as.clustering.controller.ServiceNameFactory;
import org.jboss.as.clustering.controller.ServiceNameFactoryProvider;
import org.wildfly.clustering.service.Requirement;
public enum RemoteEjbRequirement implements Requirement, ServiceNameFactoryProvider {
CLIENT_MAPPINGS_REGISTRY_PROVIDER("org.wildfly.clustering.ejb.client-mappings-registry-provider", ClientMappingsRegistryProvider.class)
;
private final String name;
private final Class> type;
private final ServiceNameFactory factory;
RemoteEjbRequirement(final String name, final Class> type) {
this.name = name;
this.type = type;
this.factory = new RequirementServiceNameFactory(this);
}
@Override
public String getName() {
return this.name;
}
@Override
public Class> getType() {
return this.type;
}
@Override
public ServiceNameFactory getServiceNameFactory() {
return this.factory;
}
}