Class DataModelClassesMapProducer
- All Implemented Interfaces:
- jakarta.enterprise.context.spi.Contextual<Map<Class<?>,,- Class<? extends DataModel<?>>>> - jakarta.enterprise.inject.spi.Bean<Map<Class<?>,,- Class<? extends DataModel<?>>>> - jakarta.enterprise.inject.spi.BeanAttributes<Map<Class<?>,,- Class<? extends DataModel<?>>>> - jakarta.enterprise.inject.spi.PassivationCapable,- Serializable
The DataModelClassesMapProducer is the CDI producer that allows UIData, UIRepeat and possible other components that need a DataModel wrapper for a given type to obtain a Map of types to DataModel implementations capable of wrapping that type.
Components can obtain this Map by querying the bean manager for beans named "comSunFacesDataModelClassesMap".
- Since:
- 2.3
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbeanClassAndType(Class<?> beanClass) create(jakarta.enterprise.context.spi.CreationalContext<Map<Class<?>, Class<? extends DataModel<?>>>> creationalContext) create(Function<jakarta.enterprise.context.spi.CreationalContext<Map<Class<?>, Class<? extends DataModel<?>>>>, Map<Class<?>, Class<? extends DataModel<?>>>> create) voiddestroy(Map<Class<?>, Class<? extends DataModel<?>>> instance, jakarta.enterprise.context.spi.CreationalContext<Map<Class<?>, Class<? extends DataModel<?>>>> creationalContext) Destroy the instance.Class<?>getId()Get the ID of this particular instantiation of the producer.Set<jakarta.enterprise.inject.spi.InjectionPoint>Get the injection points.getName()Get the default qualifier.Class<? extends Annotation>getScope()Set<Class<? extends Annotation>>Get the stereotypes.getTypes()booleanIs this an alternative.booleanqualifiers(Annotation... qualifiers) scope(Class<? extends Annotation> scope) 
- 
Constructor Details- 
DataModelClassesMapProducerpublic DataModelClassesMapProducer()
 
- 
- 
Method Details- 
getIdGet the ID of this particular instantiation of the producer.This is an implementation detail of CDI, where it wants to relocate a particular producer in order to re-inject a value. This is typically used in combination with passivation. Note that this is NOT about the value we're producing, but about the producer itself. - Specified by:
- getIdin interface- jakarta.enterprise.inject.spi.PassivationCapable
- Returns:
- the ID of this particular instantiation of the producer
 
- 
getName- Specified by:
- getNamein interface- jakarta.enterprise.inject.spi.BeanAttributes<T>
 
- 
getBeanClass- Specified by:
- getBeanClassin interface- jakarta.enterprise.inject.spi.Bean<T>
 
- 
getTypes- Specified by:
- getTypesin interface- jakarta.enterprise.inject.spi.BeanAttributes<T>
 
- 
getQualifiersGet the default qualifier.- Specified by:
- getQualifiersin interface- jakarta.enterprise.inject.spi.BeanAttributes<T>
- Returns:
- the qualifiers, which in the default case only contains the Default
 
- 
getScope- Specified by:
- getScopein interface- jakarta.enterprise.inject.spi.BeanAttributes<T>
 
- 
createpublic Map<Class<?>,Class<? extends DataModel<?>>> create(jakarta.enterprise.context.spi.CreationalContext<Map<Class<?>, Class<? extends DataModel<?>>>> creationalContext) - Specified by:
- createin interface- jakarta.enterprise.context.spi.Contextual<T>
 
- 
destroypublic void destroy(Map<Class<?>, Class<? extends DataModel<?>>> instance, jakarta.enterprise.context.spi.CreationalContext<Map<Class<?>, Class<? extends DataModel<?>>>> creationalContext) Destroy the instance.Since most artifact that the sub classes are producing are artifacts that the Faces runtime really is managing the destroy method here does not need to do anything. - Specified by:
- destroyin interface- jakarta.enterprise.context.spi.Contextual<T>
- Parameters:
- instance- the instance.
- creationalContext- the creational context.
 
- 
getInjectionPointsGet the injection points.- Specified by:
- getInjectionPointsin interface- jakarta.enterprise.inject.spi.Bean<T>
- Returns:
- the injection points.
 
- 
getStereotypesGet the stereotypes.- Specified by:
- getStereotypesin interface- jakarta.enterprise.inject.spi.BeanAttributes<T>
- Returns:
- the stereotypes.
 
- 
isAlternativepublic boolean isAlternative()Is this an alternative.- Specified by:
- isAlternativein interface- jakarta.enterprise.inject.spi.BeanAttributes<T>
- Returns:
- false.
 
- 
isNullablepublic boolean isNullable()
- 
name
- 
create
- 
beanClass
- 
types
- 
beanClassAndType
- 
qualifiersprotected com.sun.faces.cdi.CdiProducer<Map<Class<?>,Class<? extends DataModel<?>>>> qualifiers(Annotation... qualifiers) 
- 
scope
- 
addToId
 
-