@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (action == null ? 0 : action.hashCode()); result = prime * result + (phaseId == null ? 0 : phaseId.hashCode()); return result; }
else if (!phaseId.equals(other.phaseId))
/** * Checks the class for a {@link URLBeanName} annotation. * * @param clazz Class to scan */ private void processPrettyBeanAnnotation(Class clazz) { // get reference to @URLMapping annotation URLBeanName prettyBean = (URLBeanName) clazz.getAnnotation(URLBeanName.class); // process annotation if it exists if (prettyBean != null) { // log class name if (log.isTraceEnabled()) { log.trace("Found @URLBeanName annotation on class: " + clazz.getName()); } // add bean to map beanNameMap.put(clazz, prettyBean.value()); } }
queryParam.setFieldName(field.getName()); queryParam.setOwnerClass(field.getDeclaringClass()); queryParam.setName(queryParamAnnotation.value()); queryParam.setOnPostback(queryParamAnnotation.onPostback()); if (!isBlank(queryParamAnnotation.mappingId())) queryParam.setMappingIds(new String[] { queryParamAnnotation.mappingId().trim() }); queryParam.setValidatorIds(validationAnnotation.validatorIds()); queryParam.setOnError(validationAnnotation.onError()); queryParam.setValidator(validationAnnotation.validator());
/** * Searches for {@link URLAction} or {@link URLActions} annotations on a * method. * * @param method Method to scan * @param classMappingIds The mapping IDs of the class this method belongs to */ private void processMethodAnnotations(Method method, String[] classMappingIds) { // is there a @URLAction annotation on the class? URLAction actionAnnotation = method.getAnnotation(URLAction.class); if (actionAnnotation != null) { processPrettyActionAnnotation(actionAnnotation, method, classMappingIds); } // is there a @URLAction container annotation on the class? URLActions actionsAnnotation = method.getAnnotation(URLActions.class); if (actionsAnnotation != null) { // process all @URLAction annotations for (URLAction child : actionsAnnotation.actions()) { processPrettyActionAnnotation(child, method, classMappingIds); } } }
for (URLMapping child : mappingsAnnotation.mappings())
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (action == null ? 0 : action.hashCode()); result = prime * result + (phaseId == null ? 0 : phaseId.hashCode()); return result; }
else if (!phaseId.equals(other.phaseId))
/** * Searches for {@link URLAction} or {@link URLActions} annotations on a method. * * @param method Method to scan * @param classMappingIds The mapping IDs of the class this method belongs to */ private void processMethodAnnotations(Method method, String[] classMappingIds) { // is there a @URLAction annotation on the class? URLAction actionAnnotation = method.getAnnotation(URLAction.class); if (actionAnnotation != null) { processPrettyActionAnnotation(actionAnnotation, method, classMappingIds); } // is there a @URLAction container annotation on the class? URLActions actionsAnnotation = method.getAnnotation(URLActions.class); if (actionsAnnotation != null) { // process all @URLAction annotations for (URLAction child : actionsAnnotation.actions()) { processPrettyActionAnnotation(child, method, classMappingIds); } } }
/** * Checks the class for a {@link URLBeanName} annotation. * * @param clazz Class to scan */ private void processPrettyBeanAnnotation(Class<?> clazz) { // get reference to @URLMapping annotation URLBeanName prettyBean = (URLBeanName) clazz.getAnnotation(URLBeanName.class); // process annotation if it exists if (prettyBean != null) { // log class name if (log.isTraceEnabled()) { log.trace("Found @URLBeanName annotation on class: " + clazz.getName()); } // add bean to map beanNameMap.put(clazz, prettyBean.value()); } }
for (URLMapping child : mappingsAnnotation.mappings())
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (action == null ? 0 : action.hashCode()); result = prime * result + (phaseId == null ? 0 : phaseId.hashCode()); return result; }
else if (!phaseId.equals(other.phaseId))
/** * Searches for {@link URLAction} or {@link URLActions} annotations on a * method. * * @param method Method to scan * @param classMappingIds The mapping IDs of the class this method belongs to */ private void processMethodAnnotations(Method method, String[] classMappingIds) { // is there a @URLAction annotation on the class? URLAction actionAnnotation = method.getAnnotation(URLAction.class); if (actionAnnotation != null) { processPrettyActionAnnotation(actionAnnotation, method, classMappingIds); } // is there a @URLAction container annotation on the class? URLActions actionsAnnotation = method.getAnnotation(URLActions.class); if (actionsAnnotation != null) { // process all @URLAction annotations for (URLAction child : actionsAnnotation.actions()) { processPrettyActionAnnotation(child, method, classMappingIds); } } }
/** * Checks the class for a {@link URLBeanName} annotation. * * @param clazz Class to scan */ private void processPrettyBeanAnnotation(Class clazz) { // get reference to @URLMapping annotation URLBeanName prettyBean = (URLBeanName) clazz.getAnnotation(URLBeanName.class); // process annotation if it exists if (prettyBean != null) { // log class name if (log.isTraceEnabled()) { log.trace("Found @URLBeanName annotation on class: " + clazz.getName()); } // add bean to map beanNameMap.put(clazz, prettyBean.value()); } }
for (URLMapping child : mappingsAnnotation.mappings())
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (action == null ? 0 : action.hashCode()); result = prime * result + (phaseId == null ? 0 : phaseId.hashCode()); return result; }
else if (!phaseId.equals(other.phaseId))
/** * Searches for {@link URLAction} or {@link URLActions} annotations on a * method. * * @param method Method to scan * @param classMappingIds The mapping IDs of the class this method belongs to */ private void processMethodAnnotations(Method method, String[] classMappingIds) { // is there a @URLAction annotation on the class? URLAction actionAnnotation = method.getAnnotation(URLAction.class); if (actionAnnotation != null) { processPrettyActionAnnotation(actionAnnotation, method, classMappingIds); } // is there a @URLAction container annotation on the class? URLActions actionsAnnotation = method.getAnnotation(URLActions.class); if (actionsAnnotation != null) { // process all @URLAction annotations for (URLAction child : actionsAnnotation.actions()) { processPrettyActionAnnotation(child, method, classMappingIds); } } }
/** * Checks the class for a {@link URLBeanName} annotation. * * @param clazz Class to scan */ private void processPrettyBeanAnnotation(Class clazz) { // get reference to @URLMapping annotation URLBeanName prettyBean = (URLBeanName) clazz.getAnnotation(URLBeanName.class); // process annotation if it exists if (prettyBean != null) { // log class name if (log.isTraceEnabled()) { log.trace("Found @URLBeanName annotation on class: " + clazz.getName()); } // add bean to map beanNameMap.put(clazz, prettyBean.value()); } }