public String getPath(Method method) { Class clazz = method.getDeclaringClass(); BeanDesc beanDesc = BeanDescFactory.getBeanDesc(clazz); String fieldName = method.getName() + BINDING_METHOD_SUFFIX; if (beanDesc.hasField(fieldName)) { String value = (String) beanDesc.getFieldValue(fieldName, null); return value.replaceFirst("path\\s*=\\s*", ""); } return null; }
public ActionPropertyConfig createActionPropertyConfig( BeanDesc beanDesc, PropertyDesc propertyDesc) { String fieldName = propertyDesc.getPropertyName() + EXPORT_SUFFIX; if (!beanDesc.hasField(fieldName)) { return new ActionPropertyConfigImpl(); } if (!ConstantAnnotationUtil.isConstantAnnotationStringField(beanDesc.getField(fieldName))) { return new ActionPropertyConfigImpl(); } String value = (String) beanDesc.getFieldValue(fieldName, null); return new ActionPropertyConfigImpl(value); }