RuntimeAnnotationHandler responsible for processing ResourceDependency annotations.
| Modifier and Type | Class and Description |
|---|---|
| private static class | ResourceDependencyHandler.
This helper class hides expression evaluation complexity. |
| Modifier and Type | Field and Description |
|---|---|
| private final ResourceDependency[] | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | apply(FacesContext
the ctx, Object... jakarta. for the current requestone or more arguments to the handler instance. The type and number may vary. params)Implements com.
Apply the |
| private UIComponent | Returns: a new component resource based of the provided annotationthe ctx, ResourceDependency FacesContext for the current requestthe ResourceDependency that the component resource will be constructed from dep)Construct a new component resource based off the provided |
| private boolean | hasBeenProcessed(FacesContext
the ctx, ResourceDependency FacesContext for the current requestthe dep)ResourceDependency in questionDetermines of the specified |
| private void | markProcssed(FacesContext
the ctx, ResourceDependency dep)FacesContext for the current requestIndicates that the specified ResourceDependency has been processed. |
| private void | pushResourceToRoot(FacesContext
the ctx, UIComponent FacesContext for the current requestthe component resource c)Adds the specified |
| dependencies | back to summary |
|---|---|
| private final ResourceDependency[] dependencies | |
| expressionsMap | back to summary |
|---|---|
| private final Map<ResourceDependency, ResourceDependencyHandler. | |
| ResourceDependencyHandler | back to summary |
|---|---|
| public ResourceDependencyHandler(ResourceDependency[] dependencies) | |
| apply | back to summary |
|---|---|
| public void apply(FacesContext ctx, Object... params) Implements com. Doc from com.
Apply the Note when adding new types of components that can be annotated, the fact that we expose varargs here should
be hidden. Type-safe methods should be added to
| |
| createComponentResource | back to summary |
|---|---|
| private UIComponent createComponentResource(FacesContext ctx, ResourceDependency dep) Construct a new component resource based off the provided
| |
| hasBeenProcessed | back to summary |
|---|---|
| private boolean hasBeenProcessed(FacesContext ctx, ResourceDependency dep) Determines of the specified
| |
| markProcssed | back to summary |
|---|---|
| private void markProcssed(FacesContext ctx, ResourceDependency dep) Indicates that the specified ResourceDependency has been processed.
| |
| pushResourceToRoot | back to summary |
|---|---|
| private void pushResourceToRoot(FacesContext ctx, UIComponent c) Adds the specified
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv ValueExpression | |
| pack-priv String | |
| pack-priv ValueExpression | |
| pack-priv String | |
| pack-priv ValueExpression |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String | |
| pack-priv String | |
| pack-priv String |
| library | back to summary |
|---|---|
| pack-priv String library | |
| libraryExpression | back to summary |
|---|---|
| pack-priv ValueExpression libraryExpression | |
| name | back to summary |
|---|---|
| pack-priv String name | |
| nameExpression | back to summary |
|---|---|
| pack-priv ValueExpression nameExpression | |
| target | back to summary |
|---|---|
| pack-priv String target | |
| targetExpression | back to summary |
|---|---|
| pack-priv ValueExpression targetExpression | |
| Expressions | back to summary |
|---|---|
| private Expressions() | |
| getLibrary | back to summary |
|---|---|
| pack-priv String getLibrary(FacesContext ctx) | |
| getName | back to summary |
|---|---|
| pack-priv String getName(FacesContext ctx) | |
| getTarget | back to summary |
|---|---|
| pack-priv String getTarget(FacesContext ctx) | |