Package org.directwebremoting.annotations

Examples of org.directwebremoting.annotations.DataTransferObject.javascript()


    public static String inferDWRConvertedJavascriptClass(Class<?> clazz) {
        String inferred = "";
        if (clazz != null) {
            if (clazz.isAnnotationPresent(DataTransferObject.class)) {
                DataTransferObject dto = clazz.getAnnotation(DataTransferObject.class);
                inferred = dto.javascript();
            }
            if (!hasText(inferred)) inferred = clazz.getSimpleName();
        }
        return inferred;
    }
View Full Code Here


                    log.info("Dwr classpath scanning detected candidate DTO [" + beanDefinitionClass.getName() + "] processed by converter type [" + converter.type() + "]");
                }
                ConverterConfig converterConfig = new ConverterConfig();
                converterConfig.setType(converter.type());
                setIncludes(beanDefinitionClass, converterConfig);
                String javascript = converter.javascript();
                if (StringUtils.hasText(javascript))
                {
                    converterConfig.setJavascriptClassName(javascript);
                }
                Param[] params = converter.params();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.