org.apache.webbeans.el
Class WebBeansELResolver

java.lang.Object
  extended by javax.el.ELResolver
      extended by org.apache.webbeans.el.WebBeansELResolver

public class WebBeansELResolver
extends javax.el.ELResolver

JSF or JSP expression language a.k.a EL resolver.

EL is registered with the JSF in faces-config.xml if there exist a faces-config.xml in the application location WEB-INF/. Otherwise it is registered with JspApplicationContext at start-up.

All @Dependent scoped contextual instances created during an EL expression evaluation are destroyed when the evaluation completes.

Version:
$Rev: 1083887 $ $Date: 2011-03-21 19:08:43 +0100 (Mo, 21 Mär 2011) $

Field Summary
 
Fields inherited from class javax.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
 
Constructor Summary
WebBeansELResolver()
           
 
Method Summary
 Class<?> getCommonPropertyType(javax.el.ELContext arg0, Object arg1)
          
protected  Object getDependentContextualInstance(BeanManagerImpl manager, ELContextStore store, javax.el.ELContext context, javax.enterprise.inject.spi.Bean<Object> bean)
           
 Iterator<FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext arg0, Object arg1)
          
protected  Object getNormalScopedContextualInstance(BeanManagerImpl manager, ELContextStore store, javax.el.ELContext context, javax.enterprise.inject.spi.Bean<Object> bean, String beanName)
           
 Class<?> getType(javax.el.ELContext arg0, Object arg1, Object arg2)
          
 Object getValue(javax.el.ELContext context, Object obj, Object property)
          
 boolean isReadOnly(javax.el.ELContext arg0, Object arg1, Object arg2)
          
 void setValue(javax.el.ELContext arg0, Object arg1, Object arg2, Object arg3)
          
 
Methods inherited from class javax.el.ELResolver
invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebBeansELResolver

public WebBeansELResolver()
Method Detail

getCommonPropertyType

public Class<?> getCommonPropertyType(javax.el.ELContext arg0,
                                      Object arg1)

Specified by:
getCommonPropertyType in class javax.el.ELResolver

getFeatureDescriptors

public Iterator<FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext arg0,
                                                         Object arg1)

Specified by:
getFeatureDescriptors in class javax.el.ELResolver

getType

public Class<?> getType(javax.el.ELContext arg0,
                        Object arg1,
                        Object arg2)
                 throws NullPointerException,
                        javax.el.PropertyNotFoundException,
                        javax.el.ELException

Specified by:
getType in class javax.el.ELResolver
Throws:
NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException

getValue

public Object getValue(javax.el.ELContext context,
                       Object obj,
                       Object property)
                throws NullPointerException,
                       javax.el.PropertyNotFoundException,
                       javax.el.ELException

Specified by:
getValue in class javax.el.ELResolver
Throws:
NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException

getNormalScopedContextualInstance

protected Object getNormalScopedContextualInstance(BeanManagerImpl manager,
                                                   ELContextStore store,
                                                   javax.el.ELContext context,
                                                   javax.enterprise.inject.spi.Bean<Object> bean,
                                                   String beanName)

getDependentContextualInstance

protected Object getDependentContextualInstance(BeanManagerImpl manager,
                                                ELContextStore store,
                                                javax.el.ELContext context,
                                                javax.enterprise.inject.spi.Bean<Object> bean)

isReadOnly

public boolean isReadOnly(javax.el.ELContext arg0,
                          Object arg1,
                          Object arg2)
                   throws NullPointerException,
                          javax.el.PropertyNotFoundException,
                          javax.el.ELException

Specified by:
isReadOnly in class javax.el.ELResolver
Throws:
NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException

setValue

public void setValue(javax.el.ELContext arg0,
                     Object arg1,
                     Object arg2,
                     Object arg3)
              throws NullPointerException,
                     javax.el.PropertyNotFoundException,
                     javax.el.PropertyNotWritableException,
                     javax.el.ELException

Specified by:
setValue in class javax.el.ELResolver
Throws:
NullPointerException
javax.el.PropertyNotFoundException
javax.el.PropertyNotWritableException
javax.el.ELException


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.