org.jboss.errai.ioc.client.api
Interface ContextualTypeProvider<T>
- Type Parameters:
T
- the type provided by this class
- All Known Implementing Classes:
- AsyncDisposerProvider, CallerProvider, DataBinderProvider, DisposerProvider, EventProvider, InitBallotProvider, InstanceProvider, ListWidgetProvider, PageTransitionProvider, SenderProvider, TransitionAnchorFactoryProvider, TransitionAnchorProvider, TransitionToRoleProvider, UiBinderProvider
public interface ContextualTypeProvider<T>
A contextual type provider is a provider which receives contextual information about the injection point which
is being satisfied with this provider. The provider provides two pieces of contextual information: the raw class
values of the most outer type arguments (if present) of the type of the injection point, as well as any
qualifiers at that injection point.
- See Also:
IOCProvider
Method Summary |
T |
provide(Class<?>[] typeargs,
Annotation[] qualifiers)
Called to provide an instance of the type provided for by this type provider. |
provide
T provide(Class<?>[] typeargs,
Annotation[] qualifiers)
- Called to provide an instance of the type provided for by this type provider. This method accepts two arguments
which are provided by the container at runtime, describing the type arguments and qualifiers at the injection
point.
- Parameters:
typeargs
- the raw class values of the outer-most type arguments. For example, if the injection point
is of the type Map<String, List<? extends Number<>> then the values
passed to this argument will be [String.class, List.class].qualifiers
- and array of qualifiers at the injection point.
- Returns:
- the type produced by this provider.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.