javax.el

Class StandardELContext


  • public class StandardELContext
    extends ELContext
    A standard ELContext suitable for use in a stand alone environment. This class provides a default implementation of an ELResolver that contains a number of useful ELResolvers. It also provides local repositories for the FunctionMapper, VariableMapper, and BeanNameResolver.
    Since:
    EL 3.0
    • Constructor Detail

      • StandardELContext

        public StandardELContext(ExpressionFactory factory)
        Construct a default ELContext for a stand-alone environment.
        Parameters:
        factory - The ExpressionFactory
      • StandardELContext

        public StandardELContext(ELContext context)
        Construct a StandardELContext from another ELContext.
        Parameters:
        context - The ELContext that acts as a delegate in most cases
    • Method Detail

      • putContext

        public void putContext(Class key,
                               Object contextObject)
        Description copied from class: ELContext
        Associates a context object with this ELContext.

        The ELContext maintains a collection of context objects relevant to the evaluation of an expression. These context objects are used by ELResolvers. This method is used to add a context object to that collection.

        By convention, the contextObject will be of the type specified by the key. However, this is not required and the key is used strictly as a unique identifier.

        Overrides:
        putContext in class ELContext
        Parameters:
        key - The key used by an @{link ELResolver} to identify this context object.
        contextObject - The context object to add to the collection.
      • getContext

        public Object getContext(Class key)
        Description copied from class: ELContext
        Returns the context object associated with the given key.

        The ELContext maintains a collection of context objects relevant to the evaluation of an expression. These context objects are used by ELResolvers. This method is used to retrieve the context with the given key from the collection.

        By convention, the object returned will be of the type specified by the key. However, this is not required and the key is used strictly as a unique identifier.

        Overrides:
        getContext in class ELContext
        Parameters:
        key - The unique identifier that was used to associate the context object with this ELContext.
        Returns:
        The context object associated with the given key, or null if no such context was found.
      • addELResolver

        public void addELResolver(ELResolver cELResolver)
        Add a custom ELResolver to the context. The list of the custom ELResolvers will be accessed in the order they are added. A custom ELResolver added to the context cannot be removed.
        Parameters:
        cELResolver - The new ELResolver to be added to the context
      • getFunctionMapper

        public FunctionMapper getFunctionMapper()
        Construct (if needed) and return a default FunctionMapper.
        Specified by:
        getFunctionMapper in class ELContext
        Returns:
        The default FunctionMapper
      • getVariableMapper

        public VariableMapper getVariableMapper()
        Construct (if needed) and return a default VariableMapper() {
        Specified by:
        getVariableMapper in class ELContext
        Returns:
        The default Variable

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Version en cache

21/08/2025 21:36:29 Cette version de la page est en cache (à la date du 21/08/2025 21:36:29) afin d'accélérer le traitement.
Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.

Document créé le 11/06/2005, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/el/standardelcontext.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.