Top Inners Fields Constructors Methods
com.sun.faces.util.cdi11

public Class CDIUtilImpl

extends Object
implements Serializable, CDIUtil
Class Inheritance
All Implemented Interfaces
com.sun.faces.util.cdi11.CDIUtil, java.io.Serializable
Imports
java.io.Serializable, java.lang.annotation.Annotation, java.lang.reflect.Type, java.util.Collections, .HashSet, .Set, javax.enterprise.context.Dependent, javax.enterprise.context.spi.CreationalContext, javax.enterprise.inject.Any, .Default, javax.enterprise.inject.spi.AnnotatedType, .Bean, .BeanManager, .InjectionPoint, .InjectionTarget, .InjectionTargetFactory, javax.enterprise.util.AnnotationLiteral

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Bean<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

CDIUtilImplback to summary
public CDIUtilImpl()

Method Detail

createHelperBeanback to summary
public Bean<T> createHelperBean(BeanManager beanManager, Class<T> beanClass)

Implements com.sun.faces.util.cdi11.CDIUtil.createHelperBean.

Annotations
@Override
com.sun.faces.util.cdi11 back to summary

private Class CDIUtilImpl.BeanWrapper

extends Object
implements Bean
Class Inheritance
All Implemented Interfaces
javax.enterprise.inject.spi.Bean, javax.enterprise.inject.spi.BeanAttributes, javax.enterprise.context.spi.Contextual

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private Class<T>
private InjectionTarget<T>

Constructor Summary

AccessConstructor and Description
public
BeanWrapper(Class<T> beanClass)

Method Summary

Modifier and TypeMethod and Description
public Object
create(CreationalContext<T>
the context in which this instance is being created
ctx
)

Implements javax.enterprise.context.spi.Contextual.create.

Create a new instance of the contextual type.
public void
destroy(Object
the contextual instance to destroy
instance
,
CreationalContext<T>
the context in which this instance was created
ctx
)

Implements javax.enterprise.context.spi.Contextual.destroy.

Destroy an instance of the contextual type.
public Class<?>
getBeanClass()

Implements javax.enterprise.inject.spi.Bean.getBeanClass.

The bean class of the managed bean or session bean or of the bean that declares the producer method or field.
public Set<InjectionPoint>
getInjectionPoints()

Implements javax.enterprise.inject.spi.Bean.getInjectionPoints.

Obtains the javax.enterprise.inject.spi.InjectionPoint objects representing injection points of the bean, that will be validated by the container at initialization time.
public String
getName()

Implements javax.enterprise.inject.spi.BeanAttributes.getName.

Obtains the EL name of a bean, if it has one.
public Set<Annotation>
public Class<? extends Annotation>
public Set<Class<? extends Annotation>>
public Set<Type>
public boolean
public boolean
private void
setInjectionTarget(InjectionTarget<T> injectionTarget)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beanClassback to summary
private Class<T> beanClass
injectionTargetback to summary
private InjectionTarget<T> injectionTarget

Constructor Detail

BeanWrapperback to summary
public BeanWrapper(Class<T> beanClass)

Method Detail

createback to summary
public Object create(CreationalContext<T> ctx)

Implements javax.enterprise.context.spi.Contextual.create.

Doc from javax.enterprise.context.spi.Contextual.create.

Create a new instance of the contextual type. Instances should use the given javax.enterprise.context.spi.CreationalContext when obtaining contextual references to inject, in order to ensure that any dependent objects are associated with the contextual instance that is being created. An implementation may call javax.enterprise.context.spi.CreationalContext#push(Object) between instantiation and injection to help the container minimize the use of client proxy objects.

Parameters
ctx:CreationalContext<T>

the context in which this instance is being created

Returns:Object

the contextual instance

Annotations
@Override
destroyback to summary
public void destroy(Object instance, CreationalContext<T> ctx)

Implements javax.enterprise.context.spi.Contextual.destroy.

Doc from javax.enterprise.context.spi.Contextual.destroy.

Destroy an instance of the contextual type. Implementations should call javax.enterprise.context.spi.CreationalContext#release() to allow the container to destroy dependent objects of the contextual instance.

Parameters
instance:Object

the contextual instance to destroy

ctx:CreationalContext<T>

the context in which this instance was created

Annotations
@Override
getBeanClassback to summary
public Class<?> getBeanClass()

Implements javax.enterprise.inject.spi.Bean.getBeanClass.

Doc from javax.enterprise.inject.spi.Bean.getBeanClass.

The bean class of the managed bean or session bean or of the bean that declares the producer method or field.

Returns:Class<?>

the bean class

Annotations
@Override
getInjectionPointsback to summary
public Set<InjectionPoint> getInjectionPoints()

Implements javax.enterprise.inject.spi.Bean.getInjectionPoints.

Doc from javax.enterprise.inject.spi.Bean.getInjectionPoints.

Obtains the javax.enterprise.inject.spi.InjectionPoint objects representing injection points of the bean, that will be validated by the container at initialization time.

Returns:Set<InjectionPoint>

the set of injection points of the bean

Annotations
@Override
getNameback to summary
public String getName()

Implements javax.enterprise.inject.spi.BeanAttributes.getName.

Doc from javax.enterprise.inject.spi.BeanAttributes.getName.

Obtains the EL name of a bean, if it has one.

Returns:String

the EL name

Annotations
@Override
getQualifiersback to summary
public Set<Annotation> getQualifiers()

Implements javax.enterprise.inject.spi.BeanAttributes.getQualifiers.

Doc from javax.enterprise.inject.spi.BeanAttributes.getQualifiers.

Obtains the qualifiers of the bean.

Returns:Set<Annotation>

the qualifiers

Annotations
@Override
getScopeback to summary
public Class<? extends Annotation> getScope()

Implements javax.enterprise.inject.spi.BeanAttributes.getScope.

Doc from javax.enterprise.inject.spi.BeanAttributes.getScope.

Obtains the scope of the bean.

Returns:Class<? extends Annotation>

the scope

Annotations
@Override
getStereotypesback to summary
public Set<Class<? extends Annotation>> getStereotypes()

Implements javax.enterprise.inject.spi.BeanAttributes.getStereotypes.

Doc from javax.enterprise.inject.spi.BeanAttributes.getStereotypes.

Obtains the stereotypes of the bean.

Returns:Set<Class<? extends Annotation>>

the set of stereotypes

Annotations
@Override
getTypesback to summary
public Set<Type> getTypes()

Implements javax.enterprise.inject.spi.BeanAttributes.getTypes.

Doc from javax.enterprise.inject.spi.BeanAttributes.getTypes.

Obtains the bean types of the bean.

Returns:Set<Type>

the bean types

Annotations
@Override
isAlternativeback to summary
public boolean isAlternative()

Implements javax.enterprise.inject.spi.BeanAttributes.isAlternative.

Doc from javax.enterprise.inject.spi.BeanAttributes.isAlternative.

Determines if the bean is an alternative. A custom implementation of Bean may implement Prioritized in order to be selected for the application. Prioritized#getPriority() determines the priority used to resolve ambiguities.

Returns:boolean

true if the bean is an alternative, and false otherwise.

Annotations
@Override
isNullableback to summary
public boolean isNullable()

Implements javax.enterprise.inject.spi.Bean.isNullable.

Doc from javax.enterprise.inject.spi.Bean.isNullable.

Determines if javax.enterprise.context.spi.Contextual#create(CreationalContext) sometimes return a null value.

As of CDI 1.1 this method is deprecated and can safely always return false.

Returns:boolean

true if the create() method may return a null value, and false otherwise

Annotations
@Override
setInjectionTargetback to summary
private void setInjectionTarget(InjectionTarget<T> injectionTarget)
com.sun.faces.util.cdi11 back to summary

public Class CDIUtilImpl.BeanWrapper.AnyAnnotationLiteral

extends AnnotationLiteral<Any>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.enterprise.util.AnnotationLiteral.serialVersionUID.

Constructor Detail

AnyAnnotationLiteralback to summary
public AnyAnnotationLiteral()
com.sun.faces.util.cdi11 back to summary

public Class CDIUtilImpl.BeanWrapper.DefaultAnnotationLiteral

extends AnnotationLiteral<Default>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.enterprise.util.AnnotationLiteral.serialVersionUID.

Constructor Detail

DefaultAnnotationLiteralback to summary
public DefaultAnnotationLiteral()