com.google.inject.throwingproviders

Annotation Type ThrowingInject



  • @Target(value=CONSTRUCTOR)
     @Retention(value=RUNTIME)
     @Documented
    public @interface ThrowingInject
    A version of @Inject designed for ThrowingProviders. Use by:
    ThrowingProviderBinder.create(binder())
        .bind(RemoteProvider.class, Customer.class)
        .providing(CustomerImpl.class);
     
    where CustomerImpl has a constructor annotated with ThrowingInject.
    Since:
    4.0
    Author:
    sameb@google.com (Sam Berlin)

Copyright © 2006-2016 Google, Inc.. All Rights Reserved.