I'm new to Dropwizard. In the newest documentation, it refers to "Service" as the main entry point of any application. But in the example code, it actually uses "Application". I'm assuming that "Application" is a new name for "Service", since I can't find "Service" in the new source code.
I also noticed that the namespace has changed from "com.yammer" to "com.codehaus" to "io.dropwizard". I'm assuming it reflects the evolution of the project itself. Just out of curiosity, can anyone add some context to how this came about?
Both the naming changes you cited are actually changes for the upcoming Version 0.7. The documentation isn't up-to-date yet (and is actually the main thing holding back the 0.7 release according to the mailing list).
The current release notes can be found in the master branch.
io.dropwizard group ID and namespace.dropwizard-configuration,
dropwizard-jackson, dropwizard-jersey, dropwizard-jetty, dropwizard-lifecycle,
dropwizard-logging, dropwizard-servlets, dropwizard-util, dropwizard-validation.Environment to separate classes: JerseyEnvironment,
LifecycleEnvironment, etc.dropwizard-views-freemarker and dropwizard-views-mustache.
dropwizard-views just provides infrastructure now.Service to Application.dropwizard-forms, which provides support for multipart MIME entities.dropwizard-spdy.AppenderFactory, allowing for arbitrary logging appenders for application and request
logs.ConnectorFactory, allowing for arbitrary Jetty connectors.ServerFactory, with multi- and single-connector implementations.ReporterFactory, for metrics reporters, with Graphite and Ganglia implementations.ConfigurationSourceProvider to allow loading configuration files from sources other than
the filesystem.ServerFactory. To bind to privileged ports (e.g. 80), enable startAsRoot and set user
and group, then start your application as the root user.check command, which loads and validates the service configuration.dropwizard-client.deflate-encoded requests and responses.@Session HttpSession session to have the session context injected.@Session Flash message to have any existing flash message injected.enums with fuzzy matching rules (i.e., whitespace
stripping, -/_ equivalence, case insensitivity, etc.).HibernateBundle#configure(Configuration) for customization of Hibernate configuration.DateTime arguments and results when using JDBI.--migrations-file command-line option to migrate command to supply the migrations
file explicitly.application/json responses.AsyncRequestLog; now standardized on Jetty 9 NCSA format.DatabaseConfiguration to DataSourceFactory, and ConfigurationStrategy to
DatabaseConfiguration.dropwizard-db to use tomcat-jdbc instead of tomcat-dbcp.ResourceTest with ResourceTestRule, a JUnit TestRule.ManagedSessionFactory.ObjectMapperFactory; use ObjectMapper instead.Validator; use javax.validation.Validator instead.dropwizard-migrations.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With