Package org.omnifaces.cdi.param
Class DynamicParamValueProducer
- 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:
ParamExtension
,ParamProducer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DynamicParamValueProducer.DefaultParamAnnotationLiteral
AnnotationLiteral
forParam
.
-
Constructor Summary
Constructors Constructor Description DynamicParamValueProducer(Type type)
Construct dynamic param value producer for given type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
create(CreationalContext<Object> creationalContext)
void
destroy(Object instance, CreationalContext<Object> creationalContext)
Class<?>
getBeanClass()
String
getId()
Set<InjectionPoint>
getInjectionPoints()
String
getName()
Set<Annotation>
getQualifiers()
Class<? extends Annotation>
getScope()
Set<Class<? extends Annotation>>
getStereotypes()
Set<Type>
getTypes()
boolean
isAlternative()
boolean
isNullable()
-
-
-
Constructor Detail
-
DynamicParamValueProducer
public DynamicParamValueProducer(Type type)
Construct dynamic param value producer for given type.- Parameters:
type
- Type to construct dynamic param value producer for.
-
-
Method Detail
-
getBeanClass
public Class<?> getBeanClass()
- Specified by:
getBeanClass
in interfaceBean<Object>
-
getTypes
public Set<Type> getTypes()
- Specified by:
getTypes
in interfaceBeanAttributes<Object>
-
create
public Object create(CreationalContext<Object> creationalContext)
- Specified by:
create
in interfaceContextual<Object>
-
getQualifiers
public Set<Annotation> getQualifiers()
- Specified by:
getQualifiers
in interfaceBeanAttributes<Object>
-
getScope
public Class<? extends Annotation> getScope()
- Specified by:
getScope
in interfaceBeanAttributes<Object>
-
getStereotypes
public Set<Class<? extends Annotation>> getStereotypes()
- Specified by:
getStereotypes
in interfaceBeanAttributes<Object>
-
getInjectionPoints
public Set<InjectionPoint> getInjectionPoints()
- Specified by:
getInjectionPoints
in interfaceBean<Object>
-
isAlternative
public boolean isAlternative()
- Specified by:
isAlternative
in interfaceBeanAttributes<Object>
-
isNullable
public boolean isNullable()
- Specified by:
isNullable
in interfaceBean<Object>
-
getName
public String getName()
- Specified by:
getName
in interfaceBeanAttributes<Object>
-
destroy
public void destroy(Object instance, CreationalContext<Object> creationalContext)
- Specified by:
destroy
in interfaceContextual<Object>
-
getId
public String getId()
- Specified by:
getId
in interfacePassivationCapable
-
-