public abstract class BeanNameResolver
extends java.lang.Object
BeanNameELResolver
Constructor and Description |
---|
BeanNameResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateBean(java.lang.String beanName)
Allow creating a bean of the given name if it does not exist.
|
java.lang.Object |
getBean(java.lang.String beanName)
Returns the bean known by its name.
|
boolean |
isNameResolved(java.lang.String beanName)
Returns whether the given name is resolved by the BeanNameResolver
|
boolean |
isReadOnly(java.lang.String beanName)
Indicates if the bean of the given name is read-only or writable
|
void |
setBeanValue(java.lang.String beanName,
java.lang.Object value)
Sets a value to a bean of the given name.
|
public boolean isNameResolved(java.lang.String beanName)
beanName
- The name of the bean.public java.lang.Object getBean(java.lang.String beanName)
beanName
- The name of the bean.null
.public void setBeanValue(java.lang.String beanName, java.lang.Object value) throws PropertyNotWritableException
canCreateBean(java.lang.String)
is true
, one is created with the given value.beanName
- The name of the beanvalue
- The value to set the bean to. Can be null
.PropertyNotWritableException
- if the bean cannot be modified or created.public boolean isReadOnly(java.lang.String beanName)
beanName
- The name of the beantrue
if the bean can be set to a new value. false
otherwise.public boolean canCreateBean(java.lang.String beanName)
beanName
- The name of the beantrue
if bean creation is supported false
otherwise.