Atmosphere/atmosphere — pull request #1221 by klieber (2013-08-06 21:50:31+00:00)
Title: Allows injecting a reference to AtmosphereResource into a @Message methods

I'm using @ManagedService and I have a scenario where I need access to the AtmosphereResource inside of one of my @Message annotated methods. This change allows that as an option.

So now this is possible:

`
@ManagedService(path="/mychannel")
public class MyService {

@Message(decoders=MyObjectDecoder.class)
public void onMessage(AtmosphereResource resource, MyObject myObject) {
// Do something with resource and myObject
}

}
`

The AtmosphereResource must be the first parameter and you can still leave off the AtmosphereResource parameter if you have no use for it so it should break anything existing.

Let me know what you think. I'm stuck right now because I need this so I'm hoping you can get it in soon. Otherwise, I'm going to have to stop using @ManagedService but I seem to always have problems using the @AtmosphereHandlerService annotation so I don't really want to go back to it.