|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.el.BeanNameResolver
public abstract class BeanNameResolver
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.
BeanNameELResolver| Constructor Summary | |
|---|---|
BeanNameResolver()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanNameResolver()
| Method Detail |
|---|
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 bean
true if the bean can be set to a new value.
false otherwise.public boolean canCreateBean(java.lang.String beanName)
beanName - The name of the bean
true if bean creation is supported
false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||