Annotation Interface AtmosphereService


@Target(TYPE) @Retention(RUNTIME) public @interface AtmosphereService
An annotation which acts like the ManagedService annotated resource, but that can be used with frameworks like Jersey, Wicket or any framework running the Atmosphere Framework. The annotation allow configuring Atmosphere's components like Broadcaster, AtmosphereInterceptor, etc. This annotation doesn't install any Atmosphere Component like ManagedService, AtmosphereHandler or WebSocketHandler. The framework supporting the annotation must itself deploy an Atmosphere's Service when specified, The servlet() returned value will be used to install a ReflectorServletProcessor that will dispatch requests to the Servlet. You can customize the request dispatch by setting the dispatch() to false. When set to false, the ReflectorServletProcessor.onRequest(org.atmosphere.cpr.AtmosphereResource) will never be invoked. By default, only the TrackMessageSizeInterceptor is installed.