public class DataModelClassesMapProducer extends Object
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".
Constructor and Description |
---|
DataModelClassesMapProducer() |
Modifier and Type | Method and Description |
---|---|
protected com.sun.faces.cdi.CdiProducer<T> |
addToId(Object object) |
protected static <T> Set<T> |
asSet(T... a) |
protected com.sun.faces.cdi.CdiProducer<T> |
beanClass(Class<?> beanClass) |
protected com.sun.faces.cdi.CdiProducer<T> |
beanClassAndType(Class<?> beanClass) |
T |
create(javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
protected com.sun.faces.cdi.CdiProducer<T> |
create(Function<javax.enterprise.context.spi.CreationalContext<T>,T> create) |
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Destroy the instance.
|
Class<?> |
getBeanClass() |
String |
getId()
Get the ID of this particular instantiation of the producer.
|
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints()
Get the injection points.
|
String |
getName() |
Set<Annotation> |
getQualifiers()
Get the default qualifier.
|
Class<? extends Annotation> |
getScope() |
Set<Class<? extends Annotation>> |
getStereotypes()
Get the stereotypes.
|
Set<Type> |
getTypes() |
boolean |
isAlternative()
Is this an alternative.
|
boolean |
isNullable()
Is this nullable.
|
protected com.sun.faces.cdi.CdiProducer<T> |
name(String name) |
protected com.sun.faces.cdi.CdiProducer<T> |
qualifiers(Annotation... qualifiers) |
protected com.sun.faces.cdi.CdiProducer<T> |
scope(Class<? extends Annotation> scope) |
protected com.sun.faces.cdi.CdiProducer<T> |
types(Type... types) |
public String getId()
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.
getId
in interface javax.enterprise.inject.spi.PassivationCapable
public String getName()
getName
in interface javax.enterprise.inject.spi.BeanAttributes<T>
public Class<?> getBeanClass()
getBeanClass
in interface javax.enterprise.inject.spi.Bean<T>
public Set<Type> getTypes()
getTypes
in interface javax.enterprise.inject.spi.BeanAttributes<T>
public Set<Annotation> getQualifiers()
getQualifiers
in interface javax.enterprise.inject.spi.BeanAttributes<T>
public Class<? extends Annotation> getScope()
getScope
in interface javax.enterprise.inject.spi.BeanAttributes<T>
public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
create
in interface javax.enterprise.context.spi.Contextual<T>
public void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Since most artifact that the sub classes are producing are artifacts that the JSF runtime really is managing the destroy method here does not need to do anything.
destroy
in interface javax.enterprise.context.spi.Contextual<T>
instance
- the instance.creationalContext
- the creational context.public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface javax.enterprise.inject.spi.Bean<T>
public Set<Class<? extends Annotation>> getStereotypes()
getStereotypes
in interface javax.enterprise.inject.spi.BeanAttributes<T>
public boolean isAlternative()
isAlternative
in interface javax.enterprise.inject.spi.BeanAttributes<T>
public boolean isNullable()
isNullable
in interface javax.enterprise.inject.spi.Bean<T>
protected com.sun.faces.cdi.CdiProducer<T> name(String name)
protected com.sun.faces.cdi.CdiProducer<T> create(Function<javax.enterprise.context.spi.CreationalContext<T>,T> create)
protected com.sun.faces.cdi.CdiProducer<T> beanClass(Class<?> beanClass)
protected com.sun.faces.cdi.CdiProducer<T> types(Type... types)
protected com.sun.faces.cdi.CdiProducer<T> beanClassAndType(Class<?> beanClass)
protected com.sun.faces.cdi.CdiProducer<T> qualifiers(Annotation... qualifiers)
protected com.sun.faces.cdi.CdiProducer<T> scope(Class<? extends Annotation> scope)
protected com.sun.faces.cdi.CdiProducer<T> addToId(Object object)
@SafeVarargs protected static <T> Set<T> asSet(T... a)
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.