Package cn.webwheel.setters

Examples of cn.webwheel.setters.BeanSetter


            }
            WebParam param = method.getAnnotation(WebParam.class);
            if (!param.value().isEmpty()) {
                name = param.value();
            }
            BeanSetter beanSetter = BeanSetter.create(method.getReturnType(), name, this);
            if (beanSetter == null) {
                logger.severe("wrong WebParam used at " + method);
                continue;
            }
            boolean find = false;
            for (SetterInfo si : list) {
                if (!si.paramName.equals(name)) continue;
                if (!(si.setter instanceof BeanSetter)) continue;
                if (!(si.member instanceof Method)) continue;
                if (((Method) si.member).getParameterTypes().length != 1) continue;
                if (((Method) si.member).getParameterTypes()[0] != method.getReturnType()) continue;
                find = true;
                BeanSetter bs = (BeanSetter) si.setter;
                bs.setGetter(method);
                break;
            }
            if (find) {
                continue;
            }
View Full Code Here

TOP

Related Classes of cn.webwheel.setters.BeanSetter

Copyright © 2018 www.massapicom. 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.