org.infinispan.factories.TransportFactory Maven / Gradle / Ivy
package org.infinispan.factories;
import org.infinispan.factories.annotations.DefaultFactoryFor;
import org.infinispan.remoting.transport.Transport;
/**
* Factory for Transport implementations
*
* @author Manik Surtani
* @since 4.0
*/
@DefaultFactoryFor(classes = Transport.class)
public class TransportFactory extends AbstractComponentFactory implements AutoInstantiableFactory {
@Override
@SuppressWarnings("unchecked")
public T construct(Class componentType) {
return (T) globalConfiguration.transport().transport();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy