com.sun.faces.application.annotation
public class ManagedBeanConfigHandler extends java.lang.Object implements ConfigAnnotationHandler
ConfigAnnotationHandler
for ManagedBean
annotated
classes.
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> |
HANDLES |
private java.util.Map<java.lang.Class<?>,java.lang.annotation.Annotation> |
managedBeans |
private static java.lang.Class<?>[] |
SCOPES |
Constructor and Description |
---|
ManagedBeanConfigHandler() |
Modifier and Type | Method and Description |
---|---|
void |
collect(java.lang.Class<?> target,
java.lang.annotation.Annotation annotation)
Collect metadata based on the provided
Class and
Annotation to be processed later by ConfigAnnotationHandler.push(javax.faces.context.FacesContext) . |
private void |
collectAnnotatedFields(java.lang.Class<?> baseClass,
java.util.Map<java.lang.String,java.lang.reflect.Field> annotatedFields) |
private ManagedBeanInfo |
getBeanInfo(java.lang.Class<?> annotatedClass,
javax.faces.bean.ManagedBean metadata) |
java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getHandledAnnotations() |
private java.lang.String |
getName(javax.faces.bean.ManagedBean managedBean,
java.lang.Class<?> annotatedClass) |
private java.lang.String |
getScope(java.lang.Class<?> annotatedClass) |
private void |
process(BeanManager manager,
java.lang.Class<?> annotatedClass,
java.lang.annotation.Annotation annotation) |
void |
push(javax.faces.context.FacesContext ctx)
Push |
private static final java.lang.Class<?>[] SCOPES
private static final java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> HANDLES
private java.util.Map<java.lang.Class<?>,java.lang.annotation.Annotation> managedBeans
public java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> getHandledAnnotations()
getHandledAnnotations
in interface ConfigAnnotationHandler
Collection
of annotations handled by this
ConfigAnnotationHandler implementationConfigAnnotationHandler.getHandledAnnotations()
public void collect(java.lang.Class<?> target, java.lang.annotation.Annotation annotation)
ConfigAnnotationHandler
Collect metadata based on the provided Class
and
Annotation
to be processed later by ConfigAnnotationHandler.push(javax.faces.context.FacesContext)
.
NOTE: This method may be called more than once.
collect
in interface ConfigAnnotationHandler
target
- annotated classannotation
- Annotation
to processConfigAnnotationHandler.collect(Class, java.lang.annotation.Annotation)
public void push(javax.faces.context.FacesContext ctx)
ConfigAnnotationHandler
Push the configuration based on the collected metadata
to the current application.
push
in interface ConfigAnnotationHandler
ConfigAnnotationHandler.push(javax.faces.context.FacesContext)
private void process(BeanManager manager, java.lang.Class<?> annotatedClass, java.lang.annotation.Annotation annotation)
private ManagedBeanInfo getBeanInfo(java.lang.Class<?> annotatedClass, javax.faces.bean.ManagedBean metadata)
private void collectAnnotatedFields(java.lang.Class<?> baseClass, java.util.Map<java.lang.String,java.lang.reflect.Field> annotatedFields)
private java.lang.String getScope(java.lang.Class<?> annotatedClass)
private java.lang.String getName(javax.faces.bean.ManagedBean managedBean, java.lang.Class<?> annotatedClass)
Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.