@Override protected void configure() { install(new SaxParserModule()); install(new GsonModule()); install(new SetCaller.Module()); install(new FactoryModuleBuilder().build(BindToJsonPayloadWrappedWith.Factory.class)); bind(new TypeLiteral<Function<HttpRequest, Function<HttpResponse, ?>>>() { }).to(TransformerForRequest.class); bind(new TypeLiteral<org.jclouds.Fallback<Object>>() { }).to(MapHttp4xxCodesToExceptions.class); bind(new TypeLiteral<Function<Invocation, HttpRequest>>() { }).to(RestAnnotationProcessor.class); bind(IdentityFunction.class).toInstance(IdentityFunction.INSTANCE); // this will help short circuit scenarios that can otherwise lock out users bind(new TypeLiteral<AtomicReference<AuthorizationException>>() { }).toInstance(authException); bind(new TypeLiteral<Function<Predicate<String>, Map<String, String>>>() { }).to(FilterStringsBoundToInjectorByName.class); bind(new TypeLiteral<Function<URI, Proxy>>() { }).to(ProxyForURI.class); installLocations(); } }
@Override protected void configure() { install(new SaxParserModule()); install(new GsonModule()); install(new SetCaller.Module()); install(new FactoryModuleBuilder().build(BindToJsonPayloadWrappedWith.Factory.class)); bind(new TypeLiteral<Function<HttpRequest, Function<HttpResponse, ?>>>() { }).to(TransformerForRequest.class); bind(new TypeLiteral<org.jclouds.Fallback<Object>>() { }).to(MapHttp4xxCodesToExceptions.class); bind(new TypeLiteral<Function<Invocation, HttpRequest>>() { }).to(RestAnnotationProcessor.class); bind(IdentityFunction.class).toInstance(IdentityFunction.INSTANCE); // this will help short circuit scenarios that can otherwise lock out users bind(new TypeLiteral<AtomicReference<AuthorizationException>>() { }).toInstance(authException); bind(new TypeLiteral<Function<Predicate<String>, Map<String, String>>>() { }).to(FilterStringsBoundToInjectorByName.class); bind(new TypeLiteral<Function<URI, Proxy>>() { }).to(ProxyForURI.class); installLocations(); } }
@Override protected void configure() { install(new SaxParserModule()); install(new GsonModule()); install(new SetCaller.Module()); install(new FactoryModuleBuilder().build(BindToJsonPayloadWrappedWith.Factory.class)); bind(new TypeLiteral<Function<HttpRequest, Function<HttpResponse, ?>>>() { }).to(TransformerForRequest.class); bind(new TypeLiteral<org.jclouds.Fallback<Object>>() { }).to(MapHttp4xxCodesToExceptions.class); bind(new TypeLiteral<Function<Invocation, HttpRequest>>() { }).to(RestAnnotationProcessor.class); bind(IdentityFunction.class).toInstance(IdentityFunction.INSTANCE); // this will help short circuit scenarios that can otherwise lock out users bind(new TypeLiteral<AtomicReference<AuthorizationException>>() { }).toInstance(authException); bind(new TypeLiteral<Function<Predicate<String>, Map<String, String>>>() { }).to(FilterStringsBoundToInjectorByName.class); bind(new TypeLiteral<Function<URI, Proxy>>() { }).to(ProxyForURI.class); installLocations(); } }
@Override protected void configure() { install(new SaxParserModule()); install(new GsonModule()); install(new SetCaller.Module()); install(new FactoryModuleBuilder().build(BindToJsonPayloadWrappedWith.Factory.class)); bind(new TypeLiteral<Function<HttpRequest, Function<HttpResponse, ?>>>() { }).to(TransformerForRequest.class); bind(new TypeLiteral<org.jclouds.Fallback<Object>>() { }).to(MapHttp4xxCodesToExceptions.class); bind(new TypeLiteral<Function<Invocation, HttpRequest>>() { }).to(RestAnnotationProcessor.class); bind(IdentityFunction.class).toInstance(IdentityFunction.INSTANCE); // this will help short circuit scenarios that can otherwise lock out users bind(new TypeLiteral<AtomicReference<AuthorizationException>>() { }).toInstance(authException); bind(new TypeLiteral<Function<Predicate<String>, Map<String, String>>>() { }).to(FilterStringsBoundToInjectorByName.class); bind(new TypeLiteral<Function<URI, Proxy>>() { }).to(ProxyForURI.class); installLocations(); } }
@Override protected void configure() { install(new SaxParserModule()); install(new GsonModule()); install(new SetCaller.Module()); install(new FactoryModuleBuilder().build(BindToJsonPayloadWrappedWith.Factory.class)); bind(new TypeLiteral<Function<HttpRequest, Function<HttpResponse, ?>>>() { }).to(TransformerForRequest.class); bind(new TypeLiteral<org.jclouds.Fallback<Object>>() { }).to(MapHttp4xxCodesToExceptions.class); bind(new TypeLiteral<Function<Invocation, HttpRequest>>() { }).to(RestAnnotationProcessor.class); bind(IdentityFunction.class).toInstance(IdentityFunction.INSTANCE); // this will help short circuit scenarios that can otherwise lock out users bind(new TypeLiteral<AtomicReference<AuthorizationException>>() { }).toInstance(authException); bind(new TypeLiteral<Function<Predicate<String>, Map<String, String>>>() { }).to(FilterStringsBoundToInjectorByName.class); bind(new TypeLiteral<Function<URI, Proxy>>() { }).to(ProxyForURI.class); installLocations(); } }
@Override protected void configure() { install(new SaxParserModule()); install(new GsonModule()); install(new SetCaller.Module()); install(new FactoryModuleBuilder().build(BindToJsonPayloadWrappedWith.Factory.class)); bind(new TypeLiteral<Function<HttpRequest, Function<HttpResponse, ?>>>() { }).to(TransformerForRequest.class); bind(new TypeLiteral<org.jclouds.Fallback<Object>>() { }).to(MapHttp4xxCodesToExceptions.class); bind(new TypeLiteral<Function<Invocation, HttpRequest>>() { }).to(RestAnnotationProcessor.class); bind(IdentityFunction.class).toInstance(IdentityFunction.INSTANCE); // this will help short circuit scenarios that can otherwise lock out users bind(new TypeLiteral<AtomicReference<AuthorizationException>>() { }).toInstance(authException); bind(new TypeLiteral<Function<Predicate<String>, Map<String, String>>>() { }).to(FilterStringsBoundToInjectorByName.class); bind(new TypeLiteral<Function<URI, Proxy>>() { }).to(ProxyForURI.class); installLocations(); } }