Injecting Atmosphere's Components in Jersey - Atmosphere/atmosphere Wiki

Sometimes it is needed to inject Atmosphere components in a Jersey resource. The following components can be injected by using the @Context, @PathParam @QueryParam, @MatrixParam, @HeaderParam, @CookieParam, @FormParam etc. annotation

For example @Context

  @Context AtmosphereResource resource

@PathParam

  public String inject(@PathParam("test") Broadcaster broadcaster) {
     ...
  }