org.camunda.bpm.engine.cdi.impl.el
Class CdiResolver

java.lang.Object
  extended by org.camunda.bpm.engine.impl.javax.el.ELResolver
      extended by org.camunda.bpm.engine.cdi.impl.el.CdiResolver

public class CdiResolver
extends ELResolver

Resolver wrapping an instance of javax.el.ELResolver obtained from the BeanManager. Allows the process engine to resolve Cdi-Beans.

Author:
Daniel Meyer

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.impl.javax.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
 
Constructor Summary
CdiResolver()
           
 
Method Summary
protected  javax.enterprise.inject.spi.BeanManager getBeanManager()
           
 Class<?> getCommonPropertyType(ELContext context, Object base)
           
 Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base)
           
 Class<?> getType(ELContext context, Object base, Object property)
           
 Object getValue(ELContext context, Object base, Object property)
           
protected  javax.el.ELResolver getWrappedResolver()
           
 Object invoke(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params)
           
 boolean isReadOnly(ELContext context, Object base, Object property)
           
 void setValue(ELContext context, Object base, Object property, Object value)
           
protected  javax.el.ELContext wrapContext(ELContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CdiResolver

public CdiResolver()
Method Detail

getBeanManager

protected javax.enterprise.inject.spi.BeanManager getBeanManager()

getWrappedResolver

protected javax.el.ELResolver getWrappedResolver()

getCommonPropertyType

public Class<?> getCommonPropertyType(ELContext context,
                                      Object base)
Specified by:
getCommonPropertyType in class ELResolver

getFeatureDescriptors

public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context,
                                                         Object base)
Specified by:
getFeatureDescriptors in class ELResolver

getType

public Class<?> getType(ELContext context,
                        Object base,
                        Object property)
Specified by:
getType in class ELResolver

getValue

public Object getValue(ELContext context,
                       Object base,
                       Object property)
Specified by:
getValue in class ELResolver

isReadOnly

public boolean isReadOnly(ELContext context,
                          Object base,
                          Object property)
Specified by:
isReadOnly in class ELResolver

setValue

public void setValue(ELContext context,
                     Object base,
                     Object property,
                     Object value)
Specified by:
setValue in class ELResolver

invoke

public Object invoke(ELContext context,
                     Object base,
                     Object method,
                     Class<?>[] paramTypes,
                     Object[] params)
Overrides:
invoke in class ELResolver

wrapContext

protected javax.el.ELContext wrapContext(ELContext context)


Copyright © 2015 camunda services GmbH. All rights reserved.