public abstract class BeanNameResolver
extends java.lang.Object
Constructor and Description |
---|
BeanNameResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateBean(java.lang.String beanName)
Is it permitted to create a bean of the given name?
|
java.lang.Object |
getBean(java.lang.String beanName)
Returns the named bean.
|
boolean |
isNameResolved(java.lang.String beanName)
Can this resolver resolve the given bean name?
|
boolean |
isReadOnly(java.lang.String beanName)
Is the named bean read-only?
|
void |
setBeanValue(java.lang.String beanName,
java.lang.Object value)
Sets a value of a bean of the given name.
|
public boolean isNameResolved(java.lang.String beanName)
beanName
- The bean name to resolvefalse
public java.lang.Object getBean(java.lang.String beanName)
beanName
- The bean name to returnnull
public void setBeanValue(java.lang.String beanName, java.lang.Object value) throws PropertyNotWritableException
canCreateBean(java.lang.String)
returns true
then a bean
is created with the given value.beanName
- The name of the bean to be set/createvalue
- The value of the bean to set/createPropertyNotWritableException
- if the bean is read onlypublic boolean isReadOnly(java.lang.String beanName)
beanName
- The name of the bean of interesttrue
if the bean is read only, otherwise
false
public boolean canCreateBean(java.lang.String beanName)
beanName
- The name of the bean of interesttrue
if the bean may be created, otherwise
false
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.