Top Description Fields Constructors Methods
com.sun.faces.application.annotation

public Class ManagedBeanConfigHandler

extends Object
implements ConfigAnnotationHandler
Class Inheritance
All Implemented Interfaces
com.sun.faces.application.annotation.ConfigAnnotationHandler
Imports
java.lang.annotation.Annotation, java.lang.reflect.Field, java.util.Collection, .ArrayList, .Collections, .Map, .HashMap, .List, .LinkedHashMap, javax.faces.bean.*, javax.faces.context.FacesContext, com.sun.faces.application.ApplicationAssociate, com.sun.faces.mgbean.BeanManager, .ManagedBeanInfo

ConfigAnnotationHandler for ManagedBean annotated classes.

Field Summary

Modifier and TypeField and Description
private static final Collection<Class<? extends Annotation>>
private Map<Class<?>, Annotation>
private static final Class<?>[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
collect(Class<?>
annotated class
target
,
Annotation
Annotation to process
annotation
)

Implements com.sun.faces.application.annotation.ConfigAnnotationHandler.collect.

Collect metadata based on the provided Class and Annotation to be processed later by push(javax.faces.context.FacesContext).

private void
collectAnnotatedFields(Class<?> baseClass, Map<String, Field> annotatedFields)

private ManagedBeanInfo
getBeanInfo(Class<?> annotatedClass, ManagedBean metadata)

Deprecated as a consequence of ManagedBean being deprecated.
public Collection<Class<? extends Annotation>>
private String
getName(ManagedBean managedBean, Class<?> annotatedClass)

Deprecated as a consequence of ManagedBean being deprecated.
private String
getScope(Class<?> annotatedClass)

private void
process(BeanManager manager, Class<?> annotatedClass, Annotation annotation)

public void
push(FacesContext ctx)

Implements com.sun.faces.application.annotation.ConfigAnnotationHandler.push.

Push the configuration based on the collected metadata to the current application.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

HANDLESback to summary
private static final Collection<Class<? extends Annotation>> HANDLES
managedBeansback to summary
private Map<Class<?>, Annotation> managedBeans
SCOPESback to summary
private static final Class<?>[] SCOPES

Constructor Detail

ManagedBeanConfigHandlerback to summary
public ManagedBeanConfigHandler()

Method Detail

collectback to summary
public void collect(Class<?> target, Annotation annotation)

Implements com.sun.faces.application.annotation.ConfigAnnotationHandler.collect.

Doc from com.sun.faces.application.annotation.ConfigAnnotationHandler.collect.

Collect metadata based on the provided Class and Annotation to be processed later by push(javax.faces.context.FacesContext).

Note

This method may be called more than once.

Parameters
target:Class<?>

annotated class

annotation:Annotation

Annotation to process

Annotations
@Override
See Also
com.sun.faces.application.annotation.ConfigAnnotationHandler#collect(Class, java.lang.annotation.Annotation)
collectAnnotatedFieldsback to summary
private void collectAnnotatedFields(Class<?> baseClass, Map<String, Field> annotatedFields)
getBeanInfoback to summary
private ManagedBeanInfo getBeanInfo(Class<?> annotatedClass, ManagedBean metadata)

Deprecated

as a consequence of ManagedBean being deprecated. See corresponding docs for further information.

getHandledAnnotationsback to summary
public Collection<Class<? extends Annotation>> getHandledAnnotations()

Implements com.sun.faces.application.annotation.ConfigAnnotationHandler.getHandledAnnotations.

Returns:Collection<Class<? extends Annotation>>

Doc from com.sun.faces.application.annotation.ConfigAnnotationHandler.getHandledAnnotations.

a Collection of annotations handled by this ConfigAnnotationHandler implementation

Annotations
@Override
See Also
com.sun.faces.application.annotation.ConfigAnnotationHandler#getHandledAnnotations()
getNameback to summary
private String getName(ManagedBean managedBean, Class<?> annotatedClass)

Deprecated

as a consequence of ManagedBean being deprecated. See corresponding docs for further information.

getScopeback to summary
private String getScope(Class<?> annotatedClass)
processback to summary
private void process(BeanManager manager, Class<?> annotatedClass, Annotation annotation)
pushback to summary
public void push(FacesContext ctx)

Implements com.sun.faces.application.annotation.ConfigAnnotationHandler.push.

Doc from com.sun.faces.application.annotation.ConfigAnnotationHandler.push.

Push the configuration based on the collected metadata to the current application.

Annotations
@Override
See Also
com.sun.faces.application.annotation.ConfigAnnotationHandler#push(javax.faces.context.FacesContext)