Package org.atmosphere.inject
Class InjectIntrospectorAdapter<T>
java.lang.Object
org.atmosphere.inject.InjectIntrospectorAdapter<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Injectable,InjectIntrospector<T>
- Direct Known Subclasses:
AtmosphereRequestIntrospector,AtmosphereResourceEventIntrospector,AtmosphereResourceIntrospector,AtmosphereResponseIntrospector,BroadcasterIntrospector,PathParamIntrospector,PostConstructIntrospector
Adapter class for
InjectIntrospector-
Nested Class Summary
Nested classes/interfaces inherited from interface org.atmosphere.inject.InjectIntrospector
InjectIntrospector.WHEN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninjectable(AtmosphereConfig config) Returns an instance of the Tinjectable(AtmosphereResource resource) Returns an instance of the TvoidintrospectField(Class<T> clazz, Field f) Introspect the fieldvoidintrospectMethod(Method m, Object instance) Introspect the methodbooleanReturn true if this class support injection of this type.
-
Constructor Details
-
InjectIntrospectorAdapter
public InjectIntrospectorAdapter()
-
-
Method Details
-
supportedType
Description copied from interface:InjectableReturn true if this class support injection of this type.- Specified by:
supportedTypein interfaceInjectable<T>- Parameters:
t- the field- Returns:
- true if this class support injection
-
introspectField
Description copied from interface:InjectIntrospectorIntrospect the field- Specified by:
introspectFieldin interfaceInjectIntrospector<T>- Parameters:
clazz-f- the field
-
introspectMethod
Description copied from interface:InjectIntrospectorIntrospect the method- Specified by:
introspectMethodin interfaceInjectIntrospector<T>- Parameters:
m- the methodinstance- the object to invoke the method on
-
injectable
Description copied from interface:InjectIntrospectorReturns an instance of the T- Specified by:
injectablein interfaceInjectIntrospector<T>- Parameters:
resource- theAtmosphereResource- Returns:
- Return an instance of the T
-
injectable
Description copied from interface:InjectableReturns an instance of the T- Specified by:
injectablein interfaceInjectable<T>- Parameters:
config- theAtmosphereConfig- Returns:
- Return an instance of the T
-