public class ManagedBeanResolver
extends javax.el.ELResolver
Modifier and Type | Field and Description |
---|---|
protected Map<String,org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.Scope> |
_scopes
Stores all scopes defined for this instance of
VariableResolver |
protected static Map<String,org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.Scope> |
STANDARD_SCOPES |
Constructor and Description |
---|
ManagedBeanResolver()
Creates a new instance of ManagedBeanResolver
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getCommonPropertyType(javax.el.ELContext context,
Object base) |
Iterator<FeatureDescriptor> |
getFeatureDescriptors(javax.el.ELContext context,
Object base) |
Class<?> |
getType(javax.el.ELContext context,
Object base,
Object property) |
Object |
getValue(javax.el.ELContext context,
Object base,
Object property) |
boolean |
isReadOnly(javax.el.ELContext context,
Object base,
Object property) |
protected RuntimeConfig |
runtimeConfig(javax.el.ELContext context) |
void |
setValue(javax.el.ELContext context,
Object base,
Object property,
Object value) |
protected static final Map<String,org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.Scope> STANDARD_SCOPES
protected final Map<String,org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.Scope> _scopes
VariableResolver
Can store instances of Scope
which have the ability to dynamically resolve against ExternalContext
for put operations.
WARNING: this implementation is not serialized as it is thread safe because it does not update/add to _scopes after object initialization. If you need to add your own scopes, either extend and add more in an initialization block, or add proper sychronization
public ManagedBeanResolver()
public void setValue(javax.el.ELContext context, Object base, Object property, Object value) throws NullPointerException, javax.el.PropertyNotFoundException, javax.el.PropertyNotWritableException, javax.el.ELException
setValue
in class javax.el.ELResolver
NullPointerException
javax.el.PropertyNotFoundException
javax.el.PropertyNotWritableException
javax.el.ELException
public boolean isReadOnly(javax.el.ELContext context, Object base, Object property) throws NullPointerException, javax.el.PropertyNotFoundException, javax.el.ELException
isReadOnly
in class javax.el.ELResolver
NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException
public Object getValue(javax.el.ELContext context, Object base, Object property) throws NullPointerException, javax.el.PropertyNotFoundException, javax.el.ELException
getValue
in class javax.el.ELResolver
NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException
public Class<?> getType(javax.el.ELContext context, Object base, Object property) throws NullPointerException, javax.el.PropertyNotFoundException, javax.el.ELException
getType
in class javax.el.ELResolver
NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException
public Iterator<FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext context, Object base)
getFeatureDescriptors
in class javax.el.ELResolver
protected RuntimeConfig runtimeConfig(javax.el.ELContext context)
Copyright © 2020 The Apache Software Foundation. All rights reserved.