Class AtmosphereRequestIntrospector

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

@RequestScoped public class AtmosphereRequestIntrospector extends InjectIntrospectorAdapter<AtmosphereRequest>
AtmosphereRequest injection implementation support.

One managed service instance serves every client of its path, and each callback re-injects its own request into the shared field just before it runs. While a callback runs, the injected proxy resolves the request 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, or used outside every callback, acts on the request it was injected for. See CallbackScope.