Skip to content

Register DW Configuration as spring @Configuration bean? #2

@lkobashigawa

Description

@lkobashigawa

Do you think there is a way to get the DropWizard Configuration class to be processed by the ConfigurationClassPostProcessor?

Then it would be possible to have @bean methods on the Configuration class itself that would initialize shared resources like the JDBI instance or a DataSource and make them available for autowiring. As it is now, if you wanted to have your JDBC settings in your YAML file, you'd need to have both a Dropwizard configuration class to receive the values, and a separate spring @configuration class to inject with @value and produce the DataSource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions