Examples of addPropertyValue()


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

                    "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"));
            factoryBuilder.addPropertyValue("sqlUserAuthenticate", getSql(element,
                    "authenticate"));
View Full Code Here

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

                    "delete-user"));
            factoryBuilder.addPropertyValue("sqlUserSelect", getSql(element,
                    "select-user"));
            factoryBuilder.addPropertyValue("sqlUserSelectAll", getSql(element,
                    "select-all-users"));
            factoryBuilder.addPropertyValue("sqlUserAdmin",
                    getSql(element, "is-admin"));
            factoryBuilder.addPropertyValue("sqlUserAuthenticate", getSql(element,
                    "authenticate"));
        }
View Full Code Here

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

                    "select-user"));
            factoryBuilder.addPropertyValue("sqlUserSelectAll", getSql(element,
                    "select-all-users"));
            factoryBuilder.addPropertyValue("sqlUserAdmin",
                    getSql(element, "is-admin"));
            factoryBuilder.addPropertyValue("sqlUserAuthenticate", getSql(element,
                    "authenticate"));
        }

        BeanDefinition factoryDefinition = factoryBuilder.getBeanDefinition();
        String factoryId = parserContext.getReaderContext().generateBeanName(factoryDefinition);
View Full Code Here

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

  }

  private AbstractBeanDefinition getRepositoryBeanDefinition(Class<?> repositoryInterface) {

    BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(DummyRepositoryFactoryBean.class);
    builder.addPropertyValue("repositoryInterface", repositoryInterface);

    return builder.getBeanDefinition();
  }

  @Test
View Full Code Here

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

      String id = annotation.id();
      int nodeCount = annotation.nodes();
     
      BeanDefinitionBuilder builder = BeanDefinitionBuilder
          .genericBeanDefinition(HadoopClusterDelegatingFactoryBean.class);
      builder.addPropertyValue("id", id);
      builder.addPropertyValue("nodes", nodeCount);
      context.registerBeanDefinition(clusterName, builder.getBeanDefinition());
   
      builder = BeanDefinitionBuilder
          .genericBeanDefinition(ConfigurationDelegatingFactoryBean.class);
View Full Code Here

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

      int nodeCount = annotation.nodes();
     
      BeanDefinitionBuilder builder = BeanDefinitionBuilder
          .genericBeanDefinition(HadoopClusterDelegatingFactoryBean.class);
      builder.addPropertyValue("id", id);
      builder.addPropertyValue("nodes", nodeCount);
      context.registerBeanDefinition(clusterName, builder.getBeanDefinition());
   
      builder = BeanDefinitionBuilder
          .genericBeanDefinition(ConfigurationDelegatingFactoryBean.class);
      builder.addPropertyReference("cluster", clusterName);
View Full Code Here

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

    // move properties setting from PigServer to PigContext class
    MutablePropertyValues pv = builder.getRawBeanDefinition().getPropertyValues();
    String prop = "properties";
    if (pv.contains(prop)) {
      contextBuilder.addPropertyValue(prop, pv.getPropertyValue(prop).getValue());
      pv.removePropertyValue(prop);
    }

    builder.addPropertyValue("pigContext", contextBuilder.getBeanDefinition());
  }
View Full Code Here

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

    boolean hasProperties = false;

    BeanDefinitionBuilder b = BeanDefinitionBuilder.genericBeanDefinition(PropertiesFactoryBean.class);
    b.setScope(builder.getRawBeanDefinition().getScope());
    b.addPropertyValue("localOverride", true);
    ManagedList<Object> propsArray = new ManagedList<Object>(2);
    b.addPropertyValue("propertiesArray", propsArray);
   
    String attr = element.getAttribute("properties-ref");
    if (StringUtils.hasText(attr)) {
View Full Code Here

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

    BeanDefinitionBuilder b = BeanDefinitionBuilder.genericBeanDefinition(PropertiesFactoryBean.class);
    b.setScope(builder.getRawBeanDefinition().getScope());
    b.addPropertyValue("localOverride", true);
    ManagedList<Object> propsArray = new ManagedList<Object>(2);
    b.addPropertyValue("propertiesArray", propsArray);
   
    String attr = element.getAttribute("properties-ref");
    if (StringUtils.hasText(attr)) {
      hasProperties = true;
      propsArray.add(new RuntimeBeanReference(attr));
View Full Code Here

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

    if(containerCommandElement != null) {
      String textContent = containerCommandElement.getTextContent();
      String command = ParsingUtils.extractRunnableCommand(textContent);
      List<String> commands = new ArrayList<String>();
      commands.add(command);
      builder.addPropertyValue("commands", commands);
    }

    // build commands from master-runner element
    Element containerRunnerElement = DomUtils.getChildElementByTagName(element, "container-runner");
    if(containerRunnerElement != null && containerCommandElement == null) {
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.