Package org.springframework.beans

Examples of org.springframework.beans.MutablePropertyValues.addPropertyValue()


        XmlBeanFactory factory = new XmlBeanFactory(new ClassPathResource("com/tacitknowledge/flip/spring/context.xml"));
       
        BeanDefinitionBuilder beanBuilder = BeanDefinitionBuilder.rootBeanDefinition(FlipSpringAspect.class);
        String defaultUrlValue = element.getAttribute("default-url");
        MutablePropertyValues propertyValues = new MutablePropertyValues();
        propertyValues.addPropertyValue("defaultValue", defaultUrlValue);
        propertyValues.addPropertyValue(FlipSpringAspect.FEATURE_SERVICE_BEAN_NAME, new RuntimeBeanReference(FlipSpringAspect.FEATURE_SERVICE_BEAN_NAME));
        beanBuilder.getRawBeanDefinition().setPropertyValues(propertyValues);
       
        for(String name : factory.getBeanDefinitionNames()) {
            parserContext.getRegistry().registerBeanDefinition(name, factory.getBeanDefinition(name));
View Full Code Here


       
        BeanDefinitionBuilder beanBuilder = BeanDefinitionBuilder.rootBeanDefinition(FlipSpringAspect.class);
        String defaultUrlValue = element.getAttribute("default-url");
        MutablePropertyValues propertyValues = new MutablePropertyValues();
        propertyValues.addPropertyValue("defaultValue", defaultUrlValue);
        propertyValues.addPropertyValue(FlipSpringAspect.FEATURE_SERVICE_BEAN_NAME, new RuntimeBeanReference(FlipSpringAspect.FEATURE_SERVICE_BEAN_NAME));
        beanBuilder.getRawBeanDefinition().setPropertyValues(propertyValues);
       
        for(String name : factory.getBeanDefinitionNames()) {
            parserContext.getRegistry().registerBeanDefinition(name, factory.getBeanDefinition(name));
        }
View Full Code Here

        MutablePropertyValues factoryPropertyValues = new MutablePropertyValues();
        factoryBean.setPropertyValues(factoryPropertyValues);
       
        String environmentBean = element.getAttribute("environment");
        if (environmentBean != null && !environmentBean.isEmpty()) {
            factoryPropertyValues.addPropertyValue("environment", new RuntimeBeanNameReference(environmentBean));
        }

        Element contextProvidersElement = DomUtils.getChildElementByTagName(element, "context-providers");
        if (contextProvidersElement != null) {
            List contextProvidersList = parserContext.getDelegate().parseListElement(contextProvidersElement, factoryBean);
View Full Code Here

        Element contextProvidersElement = DomUtils.getChildElementByTagName(element, "context-providers");
        if (contextProvidersElement != null) {
            List contextProvidersList = parserContext.getDelegate().parseListElement(contextProvidersElement, factoryBean);
            if (contextProvidersList != null && !contextProvidersList.isEmpty()) {
                factoryPropertyValues.addPropertyValue("contextProviders", contextProvidersList);
            }
        }

        Element propertyReadersElement = DomUtils.getChildElementByTagName(element, "property-readers");
        if (propertyReadersElement != null && propertyReadersElement.hasChildNodes()) {
View Full Code Here

        Element propertyReadersElement = DomUtils.getChildElementByTagName(element, "property-readers");
        if (propertyReadersElement != null && propertyReadersElement.hasChildNodes()) {
            List propertyReadersList = parserContext.getDelegate().parseListElement(propertyReadersElement, factoryBean);
            if (propertyReadersList != null && !propertyReadersList.isEmpty()) {
                factoryPropertyValues.addPropertyValue("propertyReaders", propertyReadersList);
            }
        }
       
        Element propertiesElement = DomUtils.getChildElementByTagName(element, "properties");
        if (propertiesElement != null && propertiesElement.hasChildNodes()) {
View Full Code Here

       
        Element propertiesElement = DomUtils.getChildElementByTagName(element, "properties");
        if (propertiesElement != null && propertiesElement.hasChildNodes()) {
            Properties properties = parserContext.getDelegate().parsePropsElement(propertiesElement);
            if (properties != null && !properties.isEmpty()) {
                factoryPropertyValues.addPropertyValue("properties", properties);
            }
        }
       
        BeanDefinitionBuilder featureServiceBuilder = BeanDefinitionBuilder.genericBeanDefinition();
        BeanDefinition featureServiceRawBean = featureServiceBuilder.getRawBeanDefinition();
View Full Code Here

    MutablePropertyValues propertyValues = new MutablePropertyValues();

    RootBeanDefinition cachingInterceptor = new RootBeanDefinition(
        MethodMapCachingInterceptor.class, propertyValues);

    propertyValues.addPropertyValue(propertySource
        .getCacheKeyGeneratorProperty());
    propertyValues.addPropertyValue(propertySource
        .getCacheProviderFacadeProperty());
    propertyValues.addPropertyValue(propertySource
        .getCachingListenersProperty());
View Full Code Here

    RootBeanDefinition cachingInterceptor = new RootBeanDefinition(
        MethodMapCachingInterceptor.class, propertyValues);

    propertyValues.addPropertyValue(propertySource
        .getCacheKeyGeneratorProperty());
    propertyValues.addPropertyValue(propertySource
        .getCacheProviderFacadeProperty());
    propertyValues.addPropertyValue(propertySource
        .getCachingListenersProperty());
    propertyValues.addPropertyValue(propertySource.getCachingModelsProperty());
View Full Code Here

    propertyValues.addPropertyValue(propertySource
        .getCacheKeyGeneratorProperty());
    propertyValues.addPropertyValue(propertySource
        .getCacheProviderFacadeProperty());
    propertyValues.addPropertyValue(propertySource
        .getCachingListenersProperty());
    propertyValues.addPropertyValue(propertySource.getCachingModelsProperty());

    registry.registerBeanDefinition(cachingInterceptorId, cachingInterceptor);
  }
View Full Code Here

        .getCacheKeyGeneratorProperty());
    propertyValues.addPropertyValue(propertySource
        .getCacheProviderFacadeProperty());
    propertyValues.addPropertyValue(propertySource
        .getCachingListenersProperty());
    propertyValues.addPropertyValue(propertySource.getCachingModelsProperty());

    registry.registerBeanDefinition(cachingInterceptorId, cachingInterceptor);
  }

  private void registerFlushingInterceptor(String flushingInterceptorId,
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.