Package org.atmosphere.inject
Class AtmosphereResponseIntrospector
java.lang.Object
org.atmosphere.inject.InjectIntrospectorAdapter<AtmosphereResponse>
org.atmosphere.inject.AtmosphereResponseIntrospector
- All Implemented Interfaces:
Injectable,InjectIntrospector<AtmosphereResponse>
@RequestScoped
public class AtmosphereResponseIntrospector
extends InjectIntrospectorAdapter<AtmosphereResponse>
AtmosphereResponse injection implementation support.
One managed service instance serves every client of its path, and each
callback re-injects its own response into the shared field just before it
runs. While a callback runs, the injected proxy resolves the response 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 response 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
-
AtmosphereResponseIntrospector
public AtmosphereResponseIntrospector()
-
-
Method Details
-
supportedType
Description copied from interface:InjectableReturn true if this class support injection of this type.- Specified by:
supportedTypein interfaceInjectable- Overrides:
supportedTypein classInjectIntrospectorAdapter<AtmosphereResponse>- 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<AtmosphereResponse>- Overrides:
injectablein classInjectIntrospectorAdapter<AtmosphereResponse>- Parameters:
r- theAtmosphereResource- Returns:
- Return an instance of the T
-