Class AtmosphereResourceIntrospector

java.lang.Object
org.atmosphere.inject.InjectIntrospectorAdapter<AtmosphereResource>
org.atmosphere.inject.AtmosphereResourceIntrospector
All Implemented Interfaces:
Injectable, InjectIntrospector<AtmosphereResource>

@RequestScoped public class AtmosphereResourceIntrospector extends InjectIntrospectorAdapter<AtmosphereResource>
AtmosphereResource injection implementation support.

One managed service instance serves every client of its path, and each callback re-injects its own resource into the shared field just before it runs. While a callback runs, the injected proxy resolves the resource of the client whose callback runs on the calling thread, so concurrent callbacks never read each other's client. A reference kept beyond the callback that injected it (a map of connected users), or used outside every callback, acts on the resource it was injected for. See CallbackScope.