Package org.atmosphere.inject
Class PathParamIntrospector
- java.lang.Object
-
- org.atmosphere.inject.InjectIntrospectorAdapter<java.lang.String>
-
- org.atmosphere.inject.PathParamIntrospector
-
- All Implemented Interfaces:
Injectable,InjectIntrospector
@RequestScoped(PathParam.class) public class PathParamIntrospector extends InjectIntrospectorAdapter<java.lang.String>
PathParaminjection support.- Author:
- Jeanfrancois Arcand
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.atmosphere.inject.InjectIntrospector
InjectIntrospector.WHEN
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ThreadLocal<java.lang.String>pathLocal
-
Constructor Summary
Constructors Constructor Description PathParamIntrospector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringinjectable(AtmosphereResource r)Returns an instance of the TvoidintrospectField(java.lang.Class clazz, java.lang.reflect.Field f)Introspect the fieldbooleansupportedType(java.lang.reflect.Type t)Return true if this class support injection of this type.-
Methods inherited from class org.atmosphere.inject.InjectIntrospectorAdapter
injectable, introspectMethod
-
-
-
-
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- Overrides:
supportedTypein classInjectIntrospectorAdapter<java.lang.String>- Parameters:
t- the field- Returns:
- true if this class support injection
-
injectable
public java.lang.String injectable(AtmosphereResource r)
Description copied from interface:InjectIntrospectorReturns an instance of the T- Specified by:
injectablein interfaceInjectIntrospector- Overrides:
injectablein classInjectIntrospectorAdapter<java.lang.String>- Parameters:
r- theAtmosphereResource- Returns:
- Return an instance of the T
-
introspectField
public void introspectField(java.lang.Class clazz, java.lang.reflect.Field f)Description copied from interface:InjectIntrospectorIntrospect the field- Specified by:
introspectFieldin interfaceInjectIntrospector- Overrides:
introspectFieldin classInjectIntrospectorAdapter<java.lang.String>f- the field
-
-