Package org.springframework.beans.factory.support

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


        factory.addPropertyValue( "basicAuthenticationEnabled",
                                  basicAuthenticationEnabled );

        if ( basicAuthenticationEnabled ) {
            String username = element.getAttribute( USERNAME_ATTRIBUTE );
            factory.addPropertyValue( "basicAuthenticationUsername",
                                      username );

            String password = element.getAttribute( PASSWORD_ATTRIBUTE );
            factory.addPropertyValue( "basicAuthenticationPassword",
                                      password );
View Full Code Here


            String username = element.getAttribute( USERNAME_ATTRIBUTE );
            factory.addPropertyValue( "basicAuthenticationUsername",
                                      username );

            String password = element.getAttribute( PASSWORD_ATTRIBUTE );
            factory.addPropertyValue( "basicAuthenticationPassword",
                                      password );
        }
       
        String name = element.getAttribute( NAME );
        factory.addPropertyValue( "name",
View Full Code Here

            factory.addPropertyValue( "basicAuthenticationPassword",
                                      password );
        }
       
        String name = element.getAttribute( NAME );
        factory.addPropertyValue( "name",
                                  name.isEmpty()? null : name );
       
        String description = element.getAttribute( DESCRIPTION );
        factory.addPropertyValue( "description",
                                  description.isEmpty()? null : description );
View Full Code Here

        String name = element.getAttribute( NAME );
        factory.addPropertyValue( "name",
                                  name.isEmpty()? null : name );
       
        String description = element.getAttribute( DESCRIPTION );
        factory.addPropertyValue( "description",
                                  description.isEmpty()? null : description );
       

        if ( "xsd".equals( resourceType.toLowerCase() ) ) {
            XsdParser.parse( element,
View Full Code Here

                emptyAttributeCheck( conf.getLocalName(),
                                     WORKSHEET_NAME_ATTRIBUTE,
                                     worksheetName );
                dtableConf.setWorksheetName( worksheetName );

                factory.addPropertyValue( "resourceConfiguration",
                                          dtableConf );
            }
        }

        return factory.getBeanDefinition();
View Full Code Here

            factory.addPropertyReference("node", node);
        }

        String name = element.getAttribute(NAME_ATTRIBUTE);
        if (StringUtils.hasText(name)) {
            factory.addPropertyValue("name", name);
        } else {
            factory.addPropertyValue("name", id);
        }

        // Additions for JIRA JBRULES-3076
View Full Code Here

        String name = element.getAttribute(NAME_ATTRIBUTE);
        if (StringUtils.hasText(name)) {
            factory.addPropertyValue("name", name);
        } else {
            factory.addPropertyValue("name", id);
        }

        // Additions for JIRA JBRULES-3076
        String listeners = element.getAttribute(LISTENERS_ATTRIBUTE);
        if ( StringUtils.hasText(listeners)){
View Full Code Here

        }

        // Additions for JIRA JBRULES-3076
        String listeners = element.getAttribute(LISTENERS_ATTRIBUTE);
        if ( StringUtils.hasText(listeners)){
            factory.addPropertyValue("eventListenersFromGroup", new RuntimeBeanReference(listeners));
        }
        EventListenersUtil.parseEventListeners(parserContext, factory, element);
        // End of Additions for JIRA JBRULES-3076

        Element ksessionConf = DomUtils.getChildElementByTagName(element, "configuration");
View Full Code Here

            if (persistenceElm != null) {
                BeanDefinitionBuilder beanBuilder = BeanDefinitionBuilder.genericBeanDefinition(JpaConfiguration.class);

                String loadId = persistenceElm.getAttribute("load");
                if (StringUtils.hasText(loadId)) {
                    beanBuilder.addPropertyValue("id",
                            Long.parseLong(loadId));
                }

                Element tnxMng = DomUtils.getChildElementByTagName(persistenceElm,
                        TX_MANAGER_ATTRIBUTE);
View Full Code Here

                            throw new RuntimeException("persister element must have valid implementation attribute");
                        }
                        persistors.put(forClass,
                                implementation);
                    }
                    beanBuilder.addPropertyValue("variablePersisters",
                            persistors);
                }

                factory.addPropertyValue("jpaConfiguration",
                        beanBuilder.getBeanDefinition());
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.