Package org.atmosphere.inject
Class InjectIntrospectorAdapter<T>
- java.lang.Object
-
- org.atmosphere.inject.InjectIntrospectorAdapter<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Injectable,InjectIntrospector
- Direct Known Subclasses:
AtmosphereRequestIntrospector,AtmosphereResourceEventIntrospector,AtmosphereResourceIntrospector,AtmosphereResponseIntrospector,BroadcasterIntrospector,PathParamIntrospector,PostConstructIntrospector
public class InjectIntrospectorAdapter<T> extends java.lang.Object implements InjectIntrospector
Adapter class forInjectIntrospector- Author:
- Jeanfrancois Arcand
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.atmosphere.inject.InjectIntrospector
InjectIntrospector.WHEN
-
-
Constructor Summary
Constructors Constructor Description InjectIntrospectorAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tinjectable(AtmosphereConfig config)Returns an instance of the Tjava.lang.Objectinjectable(AtmosphereResource resource)Returns an instance of the TvoidintrospectField(java.lang.Class clazz, java.lang.reflect.Field f)Introspect the fieldvoidintrospectMethod(java.lang.reflect.Method m, java.lang.Object instance)Introspect the methodbooleansupportedType(java.lang.reflect.Type t)Return true if this class support injection of this type.
-
-
-
Method Detail
-
supportedType
public boolean supportedType(java.lang.reflect.Type t)
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
public void introspectField(java.lang.Class clazz, java.lang.reflect.Field f)Description copied from interface:InjectIntrospectorIntrospect the field- Specified by:
introspectFieldin interfaceInjectIntrospector<T>f- the field
-
introspectMethod
public void introspectMethod(java.lang.reflect.Method m, java.lang.Object instance)Description copied from interface:InjectIntrospectorIntrospect the method- Specified by:
introspectMethodin interfaceInjectIntrospector<T>- Parameters:
m- the methodinstance- the object to invoke the method on
-
injectable
public java.lang.Object injectable(AtmosphereResource resource)
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
public T injectable(AtmosphereConfig config)
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
-
-