Using the AtmosphereHandlerService Annotation - Atmosphere/atmosphere GitHub Wiki

The AtmosphereHandlerService can be used to configure an implementation of AtmosphereHandler. As simple as this

@AtmosphereHandlerService

The annotation's attributes available are

Class Scope Annotations available

@Singleton

The Singleton annotation can be used to force Atmosphere to create a single, thread safe instance of a AtmosphereHandlerService's annotated classes. For example, if your application set the @AtmosphereHandlerService's path attribute with using path templates {something}, by default a new instance of the annotated classes will be created. When annotated with Singleton, a single class will be created.