nhuray / dropwizard-spring

Dropwizard / Spring integration
54 stars 35 forks source link

Register the Dropwizard Environment as Spring bean named "dw-environment" #1

Closed joschi closed 11 years ago

joschi commented 11 years ago

Sometimes it's useful to have access to the Dropwizard Environment descriptor from inside another class. To facilitate access to the environment the SpringBundle now registers a singleton named "dw-environment" which is being registered in the SpringBundle#run() method.