public class ParamExtension extends Object implements Extension
This extension collects the target types of each injection point qualified with
the @
Param
annotation and dynamically registers Beans that effectively
represents producers for each type.
Since OmniFaces 3.6, this extension also scans for @
Param
without
@
Inject
and manually takes care of them while creating the bean.
Constructor and Description |
---|
ParamExtension() |
Modifier and Type | Method and Description |
---|---|
<T> void |
collectParams(ProcessInjectionTarget<T> event) |
void |
processParamsWithInject(AfterBeanDiscovery event) |
static <T> void |
processParamsWithoutInject(ProcessInjectionTarget<T> event,
Set<AnnotatedField<?>> paramsWithoutInject) |
public <T> void collectParams(@Observes ProcessInjectionTarget<T> event)
public void processParamsWithInject(@Observes AfterBeanDiscovery event)
public static <T> void processParamsWithoutInject(ProcessInjectionTarget<T> event, Set<AnnotatedField<?>> paramsWithoutInject)
Copyright © 2012–2020 OmniFaces. All rights reserved.