javax.el

Class BeanNameResolver


  • public abstract class BeanNameResolver
    extends Object
    Resolves a bean by its known name. This class can be extended to return a bean object given its name, to set a value to an existing bean, or to create a bean with the value.
    Since:
    EL 3.0
    See Also:
    BeanNameELResolver
    • Constructor Detail

      • BeanNameResolver

        public BeanNameResolver()
    • Method Detail

      • isNameResolved

        public boolean isNameResolved(String beanName)
        Returns whether the given name is resolved by the BeanNameResolver
        Parameters:
        beanName - The name of the bean.
        Returns:
        true if the name is resolved by this BeanNameResolver; false otherwise.
      • getBean

        public Object getBean(String beanName)
        Returns the bean known by its name.
        Parameters:
        beanName - The name of the bean.
        Returns:
        The bean with the given name. Can be null.
      • isReadOnly

        public boolean isReadOnly(String beanName)
        Indicates if the bean of the given name is read-only or writable
        Parameters:
        beanName - The name of the bean
        Returns:
        true if the bean can be set to a new value. false otherwise.
      • canCreateBean

        public boolean canCreateBean(String beanName)
        Allow creating a bean of the given name if it does not exist.
        Parameters:
        beanName - The name of the bean
        Returns:
        true if bean creation is supported false otherwise.

Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/el/beannameresolver.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.