Example usage for com.google.gwt.inject.client.binder GinAnnotatedBindingBuilder annotatedWith

List of usage examples for com.google.gwt.inject.client.binder GinAnnotatedBindingBuilder annotatedWith

Introduction

In this page you can find the example usage for com.google.gwt.inject.client.binder GinAnnotatedBindingBuilder annotatedWith.

Prototype

GinLinkedBindingBuilder<T> annotatedWith(Annotation annotation);

Source Link

Document

See the EDSL examples at GinBinder .

Usage

From source file:com.gwtplatform.dispatch.client.gin.AbstractDispatchAsyncModule.java

License:Apache License

private <T> GinLinkedBindingBuilder<T> bindAnnotated(Class<T> clazz) {
    GinAnnotatedBindingBuilder<T> binding = bind(clazz);

    if (annotationClass != null) {
        return binding.annotatedWith(annotationClass);
    }/*  w ww .j a v a  2 s .c  o m*/
    return binding;
}