public class NamedEventConfigHandler extends java.lang.Object implements ConfigAnnotationHandler
shortName
attribute is specified, register the
event by that name as well.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> |
namedEvents |
Constructor and Description |
---|
NamedEventConfigHandler() |
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) . |
java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getHandledAnnotations() |
private void |
process(NamedEventManager nem,
java.lang.Class<?> annotatedClass,
java.lang.annotation.Annotation annotation) |
void |
push(javax.faces.context.FacesContext ctx)
Push |
private java.util.Map<java.lang.Class<?>,java.lang.annotation.Annotation> namedEvents
private static final java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> HANDLES
public java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> getHandledAnnotations()
getHandledAnnotations
in interface ConfigAnnotationHandler
Collection
of annotations handled by this
ConfigAnnotationHandler implementationpublic 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 processpublic void push(javax.faces.context.FacesContext ctx)
ConfigAnnotationHandler
Push the configuration based on the collected metadata
to the current application.
push
in interface ConfigAnnotationHandler
private void process(NamedEventManager nem, java.lang.Class<?> annotatedClass, java.lang.annotation.Annotation annotation)
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.