@Override public void applyMetadata(FaceletContext ctx, Object instance) { MethodExpression expr = this.attribute.getMethodExpression(ctx, this.returnType, this.paramList); try { this.method.invoke(instance, new Object[]{expr}); } catch (InvocationTargetException e) { throw new TagAttributeException(this.attribute, e.getCause()); } catch (Exception e) { throw new TagAttributeException(this.attribute, e); } } }
public void applyMetadata(FaceletContext ctx, Object instance) { MethodExpression expr = _attribute.getMethodExpression(ctx, _returnType, _paramList); try { _method.invoke(instance, expr ); } catch (InvocationTargetException e) { throw new TagAttributeException(_attribute, e.getCause()); } catch (Exception e) { throw new TagAttributeException(_attribute, e); } } }
public void applyMetadata(FaceletContext ctx, Object instance) { try { this.method.invoke(instance, new Object[] { this.attribute .getObject(ctx, this.type) }); } catch (InvocationTargetException e) { throw new TagAttributeException(this.attribute, e.getCause()); } catch (Exception e) { throw new TagAttributeException(this.attribute, e); } } }
@Override public void applyMetadata(FaceletContext ctx, Object instance) { try { this.method.invoke(instance, new Object[] { this.attribute .getObject(ctx, this.type) }); } catch (InvocationTargetException e) { throw new TagAttributeException(this.attribute, e.getCause()); } catch (IllegalAccessException | IllegalArgumentException e) { throw new TagAttributeException(this.attribute, e); } } }
public void applyMetadata(FaceletContext faceletContext, Object instance) { MethodExpression expr = attribute.getMethodExpression(faceletContext, returnTypeClass, params); try { method.invoke(instance, expr ); } catch (InvocationTargetException e) { throw new TagAttributeException(attribute, e.getCause()); } catch (Exception e) { throw new TagAttributeException(attribute, e); } }
@Override public void applyMetadata(FaceletContext ctx, Object instance) { try { this.method.invoke(instance, new Object[] { this.attribute .getObject(ctx, this.type) }); } catch (InvocationTargetException e) { throw new TagAttributeException(this.attribute, e.getCause()); } catch (IllegalAccessException | IllegalArgumentException e) { throw new TagAttributeException(this.attribute, e); } } }
private void checkType(String type) { try { ReflectionUtil.forName(type); } catch (ClassNotFoundException e) { throw new TagAttributeException(typeAttribute, "Couldn't qualify ActionListener", e); } }
private void checkType(String type) { try { ReflectionUtil.forName(type); } catch (ClassNotFoundException e) { throw new TagAttributeException(typeAttribute, "Couldn't qualify ActionListener", e); } }
private void checkType(String type) { try { ReflectionUtil.forName(type); } catch (ClassNotFoundException e) { throw new TagAttributeException(typeAttribute, "Couldn't qualify ActionListener", e); } }
private void checkType(String type) { try { ReflectionUtil.forName(type); } catch (ClassNotFoundException e) { throw new TagAttributeException(typeAttribute, "Couldn't qualify ActionListener", e); } } }
public void applyMetadata(FaceletContext ctx, Object instance) { MethodExpression expr = _attribute.getMethodExpression(ctx, _returnType, _paramList); try { _method.invoke(instance, new LegacyMethodBinding(expr) ); } catch (InvocationTargetException e) { throw new TagAttributeException(_attribute, e.getCause()); } catch (Exception e) { throw new TagAttributeException(_attribute, e); } } }
private void checkType(String type) { try { ReflectionUtil.forName(type); } catch (ClassNotFoundException e) { throw new TagAttributeException(typeAttribute, "Couldn't qualify ActionListener", e); } }
private void checkType(String type) { try { ReflectionUtil.forName(type); } catch (ClassNotFoundException e) { throw new TagAttributeException(typeAttribute, "Couldn't qualify ActionListener", e); } }
private void checkType(String type) { try { ReflectionUtil.forName(type); } catch (ClassNotFoundException e) { throw new TagAttributeException(typeAttribute, "Couldn't qualify ActionListener", e); } } }
public TagAttributeImpl(Location location, String ns, String localName, String qName, String value) { this.location = location; this.namespace = ns; this.localName = (null == localName || 0 == localName.length()) ? qName : localName; this.qName = qName; this.value = value; try { this.literal = ELText.isLiteral(this.value); } catch (ELException e) { throw new TagAttributeException(this, e); } }
public void applyMetadata(FaceletContext faceletContext, Object instance) { MethodExpression expr = attribute.getMethodExpression(faceletContext, returnTypeClass, params); try { method.invoke(instance, new MethodExpressionMethodBinding(expr) ); } catch (InvocationTargetException e) { throw new TagAttributeException(attribute, e.getCause()); } catch (Exception e) { throw new TagAttributeException(attribute, e); } }
private void checkType(String type) { try { ReflectionUtil.forName(type); } catch (ClassNotFoundException e) { throw new TagAttributeException(typeAttribute, "Couldn't qualify ActionListener", e); } } }
/** * @param config */ public ParameterHandler(ComponentConfig config) { super(config); assignTo = getAttribute("assignTo"); if (null != assignTo) { if (assignTo.isLiteral()) { throw new TagAttributeException(this.tag, this.assignTo, Messages.getMessage(Messages.MUST_BE_EXPRESSION_ERROR)); } } }
/** * @param config */ public DefineHandler(TagConfig config) { super(config); TagAttribute attr = this.getRequiredAttribute("name"); if (!attr.isLiteral()) { throw new TagAttributeException(this.tag, attr, "Must be Literal"); } this.name = attr.getValue(); }
/** * @param config */ public ParameterHandler(ComponentConfig config) { super(config); assignTo = getAttribute("assignTo"); if (null != assignTo) { if (assignTo.isLiteral()) { throw new TagAttributeException(this.tag, this.assignTo, Messages.getMessage(Messages.MUST_BE_EXPRESSION_ERROR)); } } }