java.lang.Object
org.omnifaces.cdi.param.DynamicParamValueProducer
- All Implemented Interfaces:
Contextual<Object>,Bean<Object>,BeanAttributes<Object>,PassivationCapable
@Typed
public class DynamicParamValueProducer
extends Object
implements Bean<Object>, PassivationCapable
Dynamic CDI producer used to work around CDI's restriction to create true generic producers.
This dynamic producer calls through to the "real" producer for @Param
annotated injection points.
- Since:
- 2.0
- Author:
- Arjan Tijms
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConstruct dynamic param value producer for given type. -
Method Summary
Modifier and TypeMethodDescriptioncreate(CreationalContext<Object> creationalContext) voiddestroy(Object instance, CreationalContext<Object> creationalContext) Class<?>getId()getName()Class<? extends Annotation>getScope()Set<Class<? extends Annotation>>getTypes()boolean
-
Constructor Details
-
DynamicParamValueProducer
Construct dynamic param value producer for given type.- Parameters:
type- Type to construct dynamic param value producer for.
-
-
Method Details
-
getBeanClass
- Specified by:
getBeanClassin interfaceBean<Object>
-
getTypes
- Specified by:
getTypesin interfaceBeanAttributes<Object>
-
create
- Specified by:
createin interfaceContextual<Object>
-
getQualifiers
- Specified by:
getQualifiersin interfaceBeanAttributes<Object>
-
getScope
- Specified by:
getScopein interfaceBeanAttributes<Object>
-
getStereotypes
- Specified by:
getStereotypesin interfaceBeanAttributes<Object>
-
getInjectionPoints
- Specified by:
getInjectionPointsin interfaceBean<Object>
-
isAlternative
public boolean isAlternative()- Specified by:
isAlternativein interfaceBeanAttributes<Object>
-
getName
- Specified by:
getNamein interfaceBeanAttributes<Object>
-
destroy
- Specified by:
destroyin interfaceContextual<Object>
-
getId
- Specified by:
getIdin interfacePassivationCapable
-