codahale/dropwizard — pull request #10 by NZKoz (2011-11-15 02:40:21+00:00)
Title: Two minor fixes

Let me prefix this with "I have no idea what the fuck I'm doing".

Hit two issues trying to run the example project from git this morning. First was that `RenderCommand#getConfiguredSyntax()` was returning a `String` rather than an `Optional`. After that was fixed there was an error at runtime about the `HelloWorldResource#sayHello` method which I've included below. Switching the type of the argument to a `String` allowed the app to function as intended.

INFO [2011-11-15 02:13:13,380] com.yammer.dropwizard.config.Environment:

GET /hello-world (com.example.helloworld.resources.HelloWorldResource)

ERROR [2011-11-15 02:13:13,586] com.sun.jersey.spi.inject.Errors: The following errors and warnings have been detected with resource and/or provider classes:
SEVERE: Missing dependency for method public com.example.helloworld.core.Saying com.example.helloworld.resources.HelloWorldResource.sayHello(com.google.common.base.Optional) at parameter at index 0
SEVERE: Method, public com.example.helloworld.core.Saying com.example.helloworld.resources.HelloWorldResource.sayHello(com.google.common.base.Optional), annotated with GET of resource, class com.example.helloworld.resources.HelloWorldResource, is not recognized as valid resource method.
WARN [2011-11-15 02:13:13,587] /: unavailable
! com.sun.jersey.spi.inject.Errors$ErrorMessagesException
!	at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170)
!	at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136)
!	at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199)