Questions with respect to https://github.com/HubSpot/dropwizard-guice
Questions tagged [dropwizard-guice]
15 questions
3
votes
0 answers
Is is possible to "autoConfig" gRPC services in Java Dropwizard?
I'm looking for something similar to the GuiceBundle.enableAutoConfig(MyResource.class) type of functionality but for a gRPC server. EnableAutoConfig will scan through packages and register the resources as jersey components.
Is there a lib out…

mtical
- 299
- 4
- 15
3
votes
2 answers
File upload with swagger inflector and dropwizard
Im using swagger-inflector v.1.0.17 for my Java API. Here is what I built my API from: https://github.com/swagger-api/swagger-samples/tree/master/java/inflector-dropwizard-guice
My file upload API is defined:
'/orders-logo':
post:
…

Mark
- 4,428
- 14
- 60
- 116
1
vote
1 answer
Dependency injection using guice in Dropwizard for set in constructor
Need help with the Dependency injection using guice in Dropwizard.
public class VendorHandlerFactory {
private static final Logger LOGGER = LoggerFactory.getLogger(VendorHandlerFactory.class);
private final Map…

hmims
- 539
- 8
- 28
1
vote
1 answer
Dropwizard HttpClient Multipart http Request - Java
I am getting Multipart request from UI to upload csv file but call is going through one orchestrator service (dropwizard-version : 0.9.2) to target service (dropwizard-version : 1.2.2) for upload. While adding support for Multipart request in…

Abhishek
- 11
- 1
1
vote
0 answers
add custom tag to prometheus custom exposed metric in drop wizard
we are trying to expose custom metrics to prometheus from dropwizard application, we are trying to get number of requests for an api endpoint likeGET_REQUEST_COUNT{endpoint='test/dosomething', method=get} 10.
we are trying to register new metric…

saikumar
- 197
- 9
1
vote
1 answer
Passing variable parameters to Guice @Provides method
I have a Guice module that has a @Provides method that takes 2 parameters and returns one of the two implementations of an interface
public class ClientModule extends AbstractModule{
@Override
protected void configure(){
}
…

user11310309
- 33
- 2
- 5
1
vote
1 answer
How do you inject object into an AuthFilter which requires @context for Jersey / Dropwizard
I'm trying to figure out how to inject an object when registering a AuthDynamicFilter in jersey.
public class CustomApplication extends Application {
public void run(Configuration configuration, Environment environment) throws…

darewreck
- 2,576
- 5
- 42
- 67
1
vote
0 answers
Access guice container in Dropwiard application
I want to use dependency inject only in certain part of my code. I am using HubSpot/dropwizard-guice to integrate drop-wizard and guice. Is there a way I can access guice object instances programmatically without changing the full project. Basically…

best wishes
- 5,789
- 1
- 34
- 59
0
votes
0 answers
Receiving "Unable to create injector [Guice/MissingImplementation]: No implementation for Producer was bound."
Im trying to bind a producer in a java aplication on the following code on my appModule:
protected void configure() {
try {
Environment environment = environment();
final JdbiFactory factory = new JdbiFactory();
…

Pedro Ventura
- 13
- 4
0
votes
0 answers
Is there a way to pass Dropwizard configuration from application to Guice Module?
I am creating a Dropwizard application. I am using Guice for dependency injection as following.
public class NexusServiceApplication extends Application {
public static void main(final String[] args) throws Exception…

Kuldeep Yadav
- 1,664
- 5
- 23
- 41
0
votes
0 answers
Dropwizard fallback request filter
We have a Java Dropwizard application that currently uses a custom authentication filter.
We need to add a new authentication filter that will be executed only if the old one fails.
Is there any way to register a filter as a fallback for another…

Chedva
- 129
- 2
- 11
0
votes
0 answers
Guice & Dropwizard - Field Injection not working - while Constructor Injection does
I have a test class that looks something like this
Behind the scenes, we're using Guice and DropwizardAwareModule to configure the binding and provide instantiated classes/beans.
class SomeTest {
companion object {
@RegisterExtension
@JvmField
…

Guy Erez
- 11
- 2
0
votes
1 answer
How to use Java Hibernate validation with multiple Resource bundles?
I have a Java app that contains a dependency. The dependency is a Java library which provides:
a javax.validation.Validator
a set of Annotations one can use for validation, and their associated javax.validation.ConstraintValidators
its own set of…

Eddified
- 3,085
- 8
- 36
- 47
0
votes
1 answer
Guice Dependency Injection in dropwizard not working - is it a pom.xml artifacts dependency problem?
I want to run a Dropwizard (a REST Application).
I have a pom.xml file that uses old version of dropwizard (1.0.3) and it works.
And there is another pom.xml available bellow for the new version (2.0.10) but it does not run.
Here is the working…

Jimmy Maghrebien
- 93
- 1
- 9
0
votes
1 answer
How to resolve this failure to integrate Guice into Dropwizard?
I tried to introduce Google Guice into my Dropwizard 2.0 project using dropwizard-guicier following this approach https://github.com/HubSpot/dropwizard-guicier but getting an error
java.lang.IncompatibleClassChangeError:
Class…

Pasha
- 1,768
- 6
- 22
- 43