Package org.atmosphere.inject
Interface InjectIntrospector<T>
-
- Type Parameters:
T- the Object to inject.
- All Superinterfaces:
Injectable
- All Known Implementing Classes:
AtmosphereRequestIntrospector,AtmosphereResourceEventIntrospector,AtmosphereResourceIntrospector,AtmosphereResponseIntrospector,BroadcasterIntrospector,InjectIntrospectorAdapter,PathParamIntrospector,PostConstructIntrospector
public interface InjectIntrospector<T> extends Injectable
An Injectable class allow theInjectableObjectFactoryto inspect fields and methods before they get injected or executed. This interface supports application scoped {@link @ApplicationScoped} and request scoped {@link @RequestScoped} injection.- Author:
- Jeanfrancois Arcand
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classInjectIntrospector.WHEN
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tinjectable(AtmosphereResource resource)Returns an instance of the TvoidintrospectField(java.lang.Class<T> clazz, java.lang.reflect.Field f)Introspect the fieldvoidintrospectMethod(java.lang.reflect.Method m, java.lang.Object instance)Introspect the method-
Methods inherited from interface org.atmosphere.inject.Injectable
injectable, supportedType
-
-
-
-
Method Detail
-
introspectField
void introspectField(java.lang.Class<T> clazz, java.lang.reflect.Field f)
Introspect the field- Parameters:
f- the fieldclazz-
-
introspectMethod
void introspectMethod(java.lang.reflect.Method m, java.lang.Object instance)Introspect the method- Parameters:
m- the methodinstance- the object to invoke the method on
-
injectable
T injectable(AtmosphereResource resource)
Returns an instance of the T- Parameters:
resource- theAtmosphereResource- Returns:
- Return an instance of the T
-
-