public static class XelELResolver.StandardBeanNameResolver extends BeanNameResolver
Constructor and Description |
---|
XelELResolver.StandardBeanNameResolver(java.util.Map<java.lang.String,java.lang.Object> beans) |
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 XelELResolver.StandardBeanNameResolver(java.util.Map<java.lang.String,java.lang.Object> beans)
public boolean isNameResolved(java.lang.String beanName)
BeanNameResolver
isNameResolved
in class BeanNameResolver
beanName
- The bean name to resolvefalse
public java.lang.Object getBean(java.lang.String beanName)
BeanNameResolver
getBean
in class BeanNameResolver
beanName
- The bean name to returnnull
public void setBeanValue(java.lang.String beanName, java.lang.Object value) throws PropertyNotWritableException
BeanNameResolver
BeanNameResolver.canCreateBean(java.lang.String)
returns true
then a bean
is created with the given value.setBeanValue
in class BeanNameResolver
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)
BeanNameResolver
isReadOnly
in class BeanNameResolver
beanName
- The name of the bean of interesttrue
if the bean is read only, otherwise
false
public boolean canCreateBean(java.lang.String beanName)
BeanNameResolver
canCreateBean
in class BeanNameResolver
beanName
- The name of the bean of interesttrue
if the bean may be created, otherwise
false
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.