@Override protected void bindErrorHandlers() { bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(GoogleComputeEngineErrorHandler.class); }
@Override protected void bindErrorHandlers() { bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(GoogleComputeEngineErrorHandler.class); }
@Override protected void configure() { bind(DateAdapter.class).to(Iso8601DateAdapter.class); bind(new TypeLiteral<Predicate<AtomicReference<Operation>>>() { }).annotatedWith(named("global")).to(GlobalOperationDonePredicate.class); bind(new TypeLiteral<Predicate<AtomicReference<Operation>>>() { }).annotatedWith(named("region")).to(RegionOperationDonePredicate.class); bind(new TypeLiteral<Predicate<AtomicReference<Operation>>>() { }).annotatedWith(named("zone")).to(ZoneOperationDonePredicate.class); bind(ImplicitLocationSupplier.class).to(FirstZone.class).in(Scopes.SINGLETON); super.configure(); }
@Override protected void bindErrorHandlers() { bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(GoogleComputeEngineErrorHandler.class); }
@Override protected void bindErrorHandlers() { bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(GoogleComputeEngineErrorHandler.class); }
@Override protected void bindErrorHandlers() { bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(GoogleComputeEngineErrorHandler.class); }
@Override protected void bindErrorHandlers() { bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(GoogleComputeEngineErrorHandler.class); }
@Override protected void configure() { bind(DateAdapter.class).to(Iso8601DateAdapter.class); bind(new TypeLiteral<Predicate<AtomicReference<Operation>>>() { }).annotatedWith(named("global")).to(GlobalOperationDonePredicate.class); bind(new TypeLiteral<Predicate<AtomicReference<Operation>>>() { }).annotatedWith(named("region")).to(RegionOperationDonePredicate.class); bind(new TypeLiteral<Predicate<AtomicReference<Operation>>>() { }).annotatedWith(named("zone")).to(ZoneOperationDonePredicate.class); bind(ImplicitLocationSupplier.class).to(FirstZone.class).in(Scopes.SINGLETON); super.configure(); }