Package org.atmosphere.inject
Class AtmosphereResourceEventIntrospector
java.lang.Object
org.atmosphere.inject.InjectIntrospectorAdapter<AtmosphereResourceEvent>
org.atmosphere.inject.AtmosphereResourceEventIntrospector
- All Implemented Interfaces:
Injectable,InjectIntrospector<AtmosphereResourceEvent>
@RequestScoped
public class AtmosphereResourceEventIntrospector
extends InjectIntrospectorAdapter<AtmosphereResourceEvent>
AtmosphereResourceEvent injection implementation support.
One managed service instance can serve many resources at once (every client of
a room path, for instance), and each callback re-injects its own event into the
shared field just before it runs. While a callback runs, the injected proxy
resolves the event of the resource whose callback runs on the calling thread,
so concurrent callbacks never read each other's event. A reference kept beyond
the callback that injected it, or handed to another thread, acts on the event
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
-
AtmosphereResourceEventIntrospector
public AtmosphereResourceEventIntrospector()
-
-
Method Details
-
supportedType
Description copied from interface:InjectableReturn true if this class support injection of this type.- Specified by:
supportedTypein interfaceInjectable- Overrides:
supportedTypein classInjectIntrospectorAdapter<AtmosphereResourceEvent>- 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<AtmosphereResourceEvent>- Overrides:
injectablein classInjectIntrospectorAdapter<AtmosphereResourceEvent>- Parameters:
r- theAtmosphereResource- Returns:
- Return an instance of the T
-