Package org.atmosphere.inject
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.atmosphere.inject.InjectIntrospector
InjectIntrospector.WHEN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns an instance of the TbooleanReturn true if this class support injection of this type.Methods inherited from class org.atmosphere.inject.InjectIntrospectorAdapter
injectable, introspectField, introspectMethod
-
Constructor Details
-
AtmosphereRequestIntrospector
public AtmosphereRequestIntrospector()
-
-
Method Details
-
supportedType
Description copied from interface:InjectableReturn true if this class support injection of this type.- Specified by:
supportedTypein interfaceInjectable- Overrides:
supportedTypein classInjectIntrospectorAdapter<AtmosphereRequest>- Parameters:
t- the field- Returns:
- true if this class support injection
-
injectable
Description copied from interface:InjectIntrospectorReturns an instance of the T- Specified by:
injectablein interfaceInjectIntrospector<AtmosphereRequest>- Overrides:
injectablein classInjectIntrospectorAdapter<AtmosphereRequest>- Parameters:
r- theAtmosphereResource- Returns:
- Return an instance of the T
-