org.apache.myfaces.el.unified.resolver
Class ManagedBeanResolver
java.lang.Object
javax.el.ELResolver
org.apache.myfaces.el.unified.resolver.ManagedBeanResolver
- Direct Known Subclasses:
- GuiceResolver
public class ManagedBeanResolver
- extends javax.el.ELResolver
See JSF 1.2 spec section 5.6.1.2
- Author:
- Stan Silvert
Field Summary |
protected java.util.Map<java.lang.String,org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.Scope> |
_scopes
Stores all scopes defined for this instance of VariableResolver |
protected static java.util.Map<java.lang.String,org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.Scope> |
s_standardScopes
|
Fields inherited from class javax.el.ELResolver |
RESOLVABLE_AT_DESIGN_TIME, TYPE |
Method Summary |
java.lang.Class<?> |
getCommonPropertyType(javax.el.ELContext context,
java.lang.Object base)
|
java.util.Iterator<java.beans.FeatureDescriptor> |
getFeatureDescriptors(javax.el.ELContext context,
java.lang.Object base)
|
java.lang.Class<?> |
getType(javax.el.ELContext context,
java.lang.Object base,
java.lang.Object property)
|
java.lang.Object |
getValue(javax.el.ELContext context,
java.lang.Object base,
java.lang.Object property)
|
boolean |
isReadOnly(javax.el.ELContext context,
java.lang.Object base,
java.lang.Object property)
|
protected RuntimeConfig |
runtimeConfig(javax.el.ELContext context)
|
void |
setValue(javax.el.ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
s_standardScopes
protected static final java.util.Map<java.lang.String,org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.Scope> s_standardScopes
_scopes
protected final java.util.Map<java.lang.String,org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.Scope> _scopes
- Stores all scopes defined for this instance of
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
ManagedBeanResolver
public ManagedBeanResolver()
- Creates a new instance of ManagedBeanResolver
setValue
public void setValue(javax.el.ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value)
throws java.lang.NullPointerException,
javax.el.PropertyNotFoundException,
javax.el.PropertyNotWritableException,
javax.el.ELException
- Specified by:
setValue
in class javax.el.ELResolver
- Throws:
java.lang.NullPointerException
javax.el.PropertyNotFoundException
javax.el.PropertyNotWritableException
javax.el.ELException
isReadOnly
public boolean isReadOnly(javax.el.ELContext context,
java.lang.Object base,
java.lang.Object property)
throws java.lang.NullPointerException,
javax.el.PropertyNotFoundException,
javax.el.ELException
- Specified by:
isReadOnly
in class javax.el.ELResolver
- Throws:
java.lang.NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException
getValue
public java.lang.Object getValue(javax.el.ELContext context,
java.lang.Object base,
java.lang.Object property)
throws java.lang.NullPointerException,
javax.el.PropertyNotFoundException,
javax.el.ELException
- Specified by:
getValue
in class javax.el.ELResolver
- Throws:
java.lang.NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException
getType
public java.lang.Class<?> getType(javax.el.ELContext context,
java.lang.Object base,
java.lang.Object property)
throws java.lang.NullPointerException,
javax.el.PropertyNotFoundException,
javax.el.ELException
- Specified by:
getType
in class javax.el.ELResolver
- Throws:
java.lang.NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException
getFeatureDescriptors
public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext context,
java.lang.Object base)
- Specified by:
getFeatureDescriptors
in class javax.el.ELResolver
runtimeConfig
protected RuntimeConfig runtimeConfig(javax.el.ELContext context)
getCommonPropertyType
public java.lang.Class<?> getCommonPropertyType(javax.el.ELContext context,
java.lang.Object base)
- Specified by:
getCommonPropertyType
in class javax.el.ELResolver
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.