Package org.atmosphere.inject
Interface Injectable<T>
-
- Type Parameters:
T- the Object to inject.
- All Known Subinterfaces:
InjectIntrospector<T>
- All Known Implementing Classes:
AtmosphereConfigInjectable,AtmosphereFrameworkInjectable,AtmosphereRequestIntrospector,AtmosphereResourceEventIntrospector,AtmosphereResourceFactoryInjectable,AtmosphereResourceIntrospector,AtmosphereResourceSessionFactoryInjectable,AtmosphereResponseIntrospector,BroadcasterFactoryInjectable,BroadcasterIntrospector,InjectIntrospectorAdapter,MetaBroadcasterInjectable,PathParamIntrospector,PostConstructIntrospector,WebSocketFactoryInjectable
public interface Injectable<T>An Injectable class allow theInjectableObjectFactoryto assign a value to a field annotated with theInjectannotation.- Author:
- Jeanfrancois Arcand
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tinjectable(AtmosphereConfig config)Returns an instance of the TbooleansupportedType(java.lang.reflect.Type t)Return true if this class support injection of this type.
-
-
-
Method Detail
-
supportedType
boolean supportedType(java.lang.reflect.Type t)
Return true if this class support injection of this type.- Parameters:
t- the field- Returns:
- true if this class support injection
-
injectable
T injectable(AtmosphereConfig config)
Returns an instance of the T- Parameters:
config- theAtmosphereConfig- Returns:
- Return an instance of the T
-
-