com.aol.micro.server.rest.jersey.AsyncBinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micro-jersey Show documentation
Show all versions of micro-jersey Show documentation
Opinionated rest microservices
The newest version!
package com.aol.micro.server.rest.jersey;
import org.glassfish.hk2.utilities.binding.AbstractBinder;
import org.glassfish.jersey.server.spi.internal.ResourceMethodDispatcher;
import org.glassfish.jersey.server.spi.internal.ResourceMethodInvocationHandlerProvider;
import javax.inject.Singleton;
public class AsyncBinder extends AbstractBinder {
@Override
protected void configure() {
bind(AsyncDispatcher.AsyncDispatcherProvider.class).to(
ResourceMethodDispatcher.Provider.class).in(Singleton.class)
.ranked(1);
}
}