Package jakarta.el
Class BeanNameResolver
java.lang.Object
jakarta.el.BeanNameResolver
Base implementation that provides a minimal default implementation that is intended to be extended by application
 developers.
- Since:
- EL 3.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanCreateBean(String beanName) Is it permitted to create a bean of the given name?Returns the named bean.booleanisNameResolved(String beanName) Can this resolver resolve the given bean name?booleanisReadOnly(String beanName) Is the named bean read-only?voidsetBeanValue(String beanName, Object value) Sets a value of a bean of the given name.
- 
Constructor Details- 
BeanNameResolverpublic BeanNameResolver()
 
- 
- 
Method Details- 
isNameResolvedCan this resolver resolve the given bean name?- Parameters:
- beanName- The bean name to resolve
- Returns:
- This default implementation always returns false
 
- 
getBeanReturns the named bean.- Parameters:
- beanName- The bean name to return
- Returns:
- This default implementation always returns null
 
- 
setBeanValueSets a value of a bean of the given name. If the named bean does not exist andcanCreateBean(java.lang.String)returnstruethen a bean is created with the given value.- Parameters:
- beanName- The name of the bean to be set/create
- value- The value of the bean to set/create
- Throws:
- PropertyNotWritableException- if the bean is read only
 
- 
isReadOnlyIs the named bean read-only?- Parameters:
- beanName- The name of the bean of interest
- Returns:
- trueif the bean is read only, otherwise- false
 
- 
canCreateBeanIs it permitted to create a bean of the given name?- Parameters:
- beanName- The name of the bean of interest
- Returns:
- trueif the bean may be created, otherwise- false
 
 
-