Examples of addPropertyValue()


Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addPropertyValue()

        // common for both user managers
        if (StringUtils.hasText(element.getAttribute("encrypt-passwords"))) {
            String encryptionStrategy = element.getAttribute("encrypt-passwords");
           
            if(encryptionStrategy.equals("true") || encryptionStrategy.equals("md5")) {
                factoryBuilder.addPropertyValue("passwordEncryptor", new Md5PasswordEncryptor());
            } else if(encryptionStrategy.equals("salted")) {
                factoryBuilder.addPropertyValue("passwordEncryptor", new SaltedPasswordEncryptor());
            } else {
                factoryBuilder.addPropertyValue("passwordEncryptor", new ClearTextPasswordEncryptor());
            }
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addPropertyValue()

            String encryptionStrategy = element.getAttribute("encrypt-passwords");
           
            if(encryptionStrategy.equals("true") || encryptionStrategy.equals("md5")) {
                factoryBuilder.addPropertyValue("passwordEncryptor", new Md5PasswordEncryptor());
            } else if(encryptionStrategy.equals("salted")) {
                factoryBuilder.addPropertyValue("passwordEncryptor", new SaltedPasswordEncryptor());
            } else {
                factoryBuilder.addPropertyValue("passwordEncryptor", new ClearTextPasswordEncryptor());
            }
        }
       
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addPropertyValue()

            if(encryptionStrategy.equals("true") || encryptionStrategy.equals("md5")) {
                factoryBuilder.addPropertyValue("passwordEncryptor", new Md5PasswordEncryptor());
            } else if(encryptionStrategy.equals("salted")) {
                factoryBuilder.addPropertyValue("passwordEncryptor", new SaltedPasswordEncryptor());
            } else {
                factoryBuilder.addPropertyValue("passwordEncryptor", new ClearTextPasswordEncryptor());
            }
        }
       
        if (factoryClass == PropertiesUserManagerFactory.class) {
            if (StringUtils.hasText(element.getAttribute("file"))) {
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addPropertyValue()

            }
        }
       
        if (factoryClass == PropertiesUserManagerFactory.class) {
            if (StringUtils.hasText(element.getAttribute("file"))) {
                factoryBuilder.addPropertyValue("file", element.getAttribute("file"));
            }
            if (StringUtils.hasText(element.getAttribute("url"))) {
                factoryBuilder.addPropertyValue("url", element.getAttribute("url"));
            }
        } else {
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addPropertyValue()

        if (factoryClass == PropertiesUserManagerFactory.class) {
            if (StringUtils.hasText(element.getAttribute("file"))) {
                factoryBuilder.addPropertyValue("file", element.getAttribute("file"));
            }
            if (StringUtils.hasText(element.getAttribute("url"))) {
                factoryBuilder.addPropertyValue("url", element.getAttribute("url"));
            }
        } else {
            Element dsElm = SpringUtil.getChildElement(element,
                    FtpServerNamespaceHandler.FTPSERVER_NS, "data-source");
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addPropertyValue()

                // ref
                o = parserContext.getDelegate().parsePropertySubElement(
                        springElm, builder.getBeanDefinition());

            }
            factoryBuilder.addPropertyValue("dataSource", o);

            factoryBuilder.addPropertyValue("sqlUserInsert", getSql(element,
                    "insert-user"));
            factoryBuilder.addPropertyValue("sqlUserUpdate", getSql(element,
                    "update-user"));
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addPropertyValue()

                        springElm, builder.getBeanDefinition());

            }
            factoryBuilder.addPropertyValue("dataSource", o);

            factoryBuilder.addPropertyValue("sqlUserInsert", getSql(element,
                    "insert-user"));
            factoryBuilder.addPropertyValue("sqlUserUpdate", getSql(element,
                    "update-user"));
            factoryBuilder.addPropertyValue("sqlUserDelete", getSql(element,
                    "delete-user"));
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addPropertyValue()

            }
            factoryBuilder.addPropertyValue("dataSource", o);

            factoryBuilder.addPropertyValue("sqlUserInsert", getSql(element,
                    "insert-user"));
            factoryBuilder.addPropertyValue("sqlUserUpdate", getSql(element,
                    "update-user"));
            factoryBuilder.addPropertyValue("sqlUserDelete", getSql(element,
                    "delete-user"));
            factoryBuilder.addPropertyValue("sqlUserSelect", getSql(element,
                    "select-user"));
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addPropertyValue()

            factoryBuilder.addPropertyValue("sqlUserInsert", getSql(element,
                    "insert-user"));
            factoryBuilder.addPropertyValue("sqlUserUpdate", getSql(element,
                    "update-user"));
            factoryBuilder.addPropertyValue("sqlUserDelete", getSql(element,
                    "delete-user"));
            factoryBuilder.addPropertyValue("sqlUserSelect", getSql(element,
                    "select-user"));
            factoryBuilder.addPropertyValue("sqlUserSelectAll", getSql(element,
                    "select-all-users"));
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addPropertyValue()

                    "insert-user"));
            factoryBuilder.addPropertyValue("sqlUserUpdate", getSql(element,
                    "update-user"));
            factoryBuilder.addPropertyValue("sqlUserDelete", getSql(element,
                    "delete-user"));
            factoryBuilder.addPropertyValue("sqlUserSelect", getSql(element,
                    "select-user"));
            factoryBuilder.addPropertyValue("sqlUserSelectAll", getSql(element,
                    "select-all-users"));
            factoryBuilder.addPropertyValue("sqlUserAdmin",
                    getSql(element, "is-admin"));
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.