Exemplo n.º 1
0
  @Override
  protected ELResolver createElResolver(VariableScope variableScope) {
    CompositeELResolver compositeElResolver = new CompositeELResolver();

    compositeElResolver.add(new VerboseELResolver(Level.FINE));

    compositeElResolver.add(new VariableScopeElResolver(variableScope));

    compositeElResolver.add(new CdiResolver());

    compositeElResolver.add(new ArrayELResolver());
    compositeElResolver.add(new ListELResolver());
    compositeElResolver.add(new MapELResolver());
    compositeElResolver.add(new BeanELResolver());
    compositeElResolver.add(new BundleBeanResolver());
    return compositeElResolver;
  }
  protected ELResolver createElResolver(VariableScope variableScope) {
    CompositeELResolver compositeElResolver = new CompositeELResolver();
    compositeElResolver.add(new VariableScopeElResolver(variableScope));
    compositeElResolver.add(new ServiceElResolver(objectLocator));
    compositeElResolver.add(new ArrayELResolver());
    compositeElResolver.add(new ListELResolver());
    compositeElResolver.add(new MapELResolver());
    compositeElResolver.add(new BeanELResolver());

    return compositeElResolver;
  }
Exemplo n.º 3
0
 /**
  * Create a resolver capable of resolving top-level identifiers. Everything else is passed to the
  * supplied delegate.
  */
 public SimpleResolver(ELResolver resolver, boolean readOnly) {
   delegate = new CompositeELResolver();
   delegate.add(root = new RootPropertyResolver(readOnly));
   delegate.add(resolver);
 }
Exemplo n.º 4
0
 @Override
 public void setValue(ELContext context, Object base, Object property, Object value) {
   delegate.setValue(context, base, property, value);
 }
Exemplo n.º 5
0
 @Override
 public Object invoke(
     ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params) {
   return delegate.invoke(context, base, method, paramTypes, params);
 };
Exemplo n.º 6
0
 @Override
 public boolean isReadOnly(ELContext context, Object base, Object property) {
   return delegate.isReadOnly(context, base, property);
 }
Exemplo n.º 7
0
 @Override
 public Object getValue(ELContext context, Object base, Object property) {
   return delegate.getValue(context, base, property);
 }
Exemplo n.º 8
0
 @Override
 public Class<?> getType(ELContext context, Object base, Object property) {
   return delegate.getType(context, base, property);
 }
Exemplo n.º 9
0
 @Override
 public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
   return delegate.getFeatureDescriptors(context, base);
 }
Exemplo n.º 10
0
 @Override
 public Class<?> getCommonPropertyType(ELContext context, Object base) {
   return delegate.getCommonPropertyType(context, base);
 }