Skip to content

Conversation

@dhardiker
Copy link

This comprises of 3 changes, all of which I needed to use this library with my dropwizard application.

  1. Supporting dropwizard Bundles, which means you can add your own logic & configuration. The change could have been better (such as moving the config to an interface) but would have broken backward compatibility.
  2. Extending the SpringConfiguration to allow beans to be created through the configuration.
  3. Enabling the methods to be overridden if necessary through unofficial APIs, protection moving from private to package-local making minor extensions much simpler. As the code is single threaded, the risks here are limited.

The README.md has been updated with examples. I've released this into my private repository at 0.7.0 as it was a functional change.

…within the same package in preparation for adding a dropwizard bundle without repeating any code, but maintaining backward compatibility with SpringService use.
…/application's initialize method allowing improved customisability. See the other dropwizard bundles for advantages of this approach for supporting libraries.
… initialised during construction with delegating methods that are locally called (and passed through by default). This allows further customisation through subclassing for users of the library through an unpublished API.
…t before the rest of the configuration is loaded. This has been used to inject a StaticApplicationContext where bean data is loaded from the configuration - a further feature will add this with first class support within the library.
…ation entries and turns them into Spring beans, making sure this context is constructed immediately after the dropwizard Spring bean is created and populated.
@bflad
Copy link
Collaborator

bflad commented Jan 3, 2015

I'm personally liking the idea here. We generally have broken out Spring configurables to a separate properties file, but this helps keep it self contained and wouldn't require changing both the Spring XML and associated properties. Curious what @boneill42, @irieksts, or @pabrahamsson think.

@boneill42
Copy link
Contributor

Agreed, I like it. We need someone to pull it down and test it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants