public abstract class BeanNameResolver extends Object
BeanNameELResolver
Constructor and Description |
---|
BeanNameResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateBean(String beanName)
Allow creating a bean of the given name if it does not exist.
|
Object |
getBean(String beanName)
Returns the bean known by its name.
|
boolean |
isNameResolved(String beanName)
Returns whether the given name is resolved by the BeanNameResolver
|
boolean |
isReadOnly(String beanName)
Indicates if the bean of the given name is read-only or writable
|
void |
setBeanValue(String beanName,
Object value)
Sets a value to a bean of the given name.
|
public boolean isNameResolved(String beanName)
beanName
- The name of the bean.public Object getBean(String beanName)
beanName
- The name of the bean.null
.public void setBeanValue(String beanName, 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(String beanName)
beanName
- The name of the beantrue
if the bean can be set to a new value.
false
otherwise.public boolean canCreateBean(String beanName)
beanName
- The name of the beantrue
if bean creation is supported
false
otherwise.Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.