org.jetlinks.supports.scalecube.EmptyServiceMethodRegistry Maven / Gradle / Ivy
The newest version!
package org.jetlinks.supports.scalecube;
import io.scalecube.services.ServiceInfo;
import io.scalecube.services.methods.ServiceMethodInvoker;
import io.scalecube.services.methods.ServiceMethodRegistry;
import java.util.Collections;
import java.util.List;
public class EmptyServiceMethodRegistry implements ServiceMethodRegistry {
public static final ServiceMethodRegistry INSTANCE = new EmptyServiceMethodRegistry();
private EmptyServiceMethodRegistry(){}
@Override
public void registerService(ServiceInfo serviceInfo) {
}
@Override
public ServiceMethodInvoker getInvoker(String qualifier) {
return null;
}
@Override
public List listInvokers() {
return Collections.emptyList();
}
@Override
public List listServices() {
return Collections.emptyList();
}
}