Class AnnotationMap

java.lang.Object
org.wildfly.extras.jsf.myfaces.injection.AnnotationMap

public class AnnotationMap extends Object
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 Details

    • FACES_ANNOTATIONS_SC_ATTR

      public static final String FACES_ANNOTATIONS_SC_ATTR
      See Also:
  • Method Details