Package com.englishtown.vertx.jersey.integration

Source Code of com.englishtown.vertx.jersey.integration.IntegrationBinder

package com.englishtown.vertx.jersey.integration;

import com.englishtown.vertx.hk2.HK2JerseyBinder;
import com.englishtown.vertx.jersey.inject.VertxRequestProcessor;
import org.glassfish.hk2.utilities.binding.AbstractBinder;

/**
*
*/
public class IntegrationBinder extends AbstractBinder {
    /**
     * Implement to provide binding definitions using the exposed binding
     * methods.
     */
    @Override
    protected void configure() {

        install(new HK2JerseyBinder());

        bind(ReqProcessor1.class).to(VertxRequestProcessor.class).ranked(10);
        bind(ReqProcessor2.class).to(VertxRequestProcessor.class).ranked(100);

    }
}
TOP

Related Classes of com.englishtown.vertx.jersey.integration.IntegrationBinder

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.