Class AnnotationMap
java.lang.Object
org.wildfly.extras.jsf.myfaces.injection.AnnotationMap
This class retrieves the annotation map from application scope. This map was placed there by the JSFAnnotationProcessor
in the Jakarta Faces subsystem.
The class also reloads the map if needed. The reason why the map must be reloaded is because the Jakarta Faces
Annotation classes used as the map keys are always loaded by the Jakarta Faces subsystem and thus always correspond
to the default Jakarta Faces implementation. If a different Jakarta Faces * implementation is used then
the Jakarta Faces impl will be looking for the wrong version of the map keys. So, we replace the default
implementations of the Jakarta Faces Annotation classes with whatever version the WAR is actually using.
The reason this works is because we have a "slot" for jsf-injection for each Jakarta Faces implementation.
And jsf-injection points to its corresponding Jakarta Faces impl/api slots.
- Author:
- Stan Silvert ssilvert@redhat.com (C) 2012 Red Hat Inc.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
FACES_ANNOTATIONS_SC_ATTR
- See Also:
-
org.jboss.as.jsf.deployment.JSFAnnotationProcessor#FACES_ANNOTATIONS_SC_ATTR- Constant Field Values
-
-
Method Details
-
get
public static Map<Class<? extends Annotation>,Set<Class<?>>> get(jakarta.faces.context.ExternalContext extContext) -
get
public static Map<Class<? extends Annotation>,Set<Class<?>>> get(jakarta.servlet.ServletContext servletContext)
-