Examples of MutablePropertyValues


Examples of org.springframework.beans.MutablePropertyValues

    parser.registerCustomBeans(registry);
  }

  private MutablePropertyValues flushingInterceptorPropertyValues() {
    MutablePropertyValues pv = new MutablePropertyValues();

    pv.addPropertyValue(propertySource.getCacheProviderFacadeProperty());
    pv.addPropertyValue(propertySource.getFlushingModelsProperty());

    return pv;
  }
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

  protected final void doParse(String cacheProviderFacadeId, Element element,
      BeanDefinitionRegistry registry) {
    String id = "cacheManager";
    Class clazz = getCacheManagerClass();
    RootBeanDefinition cacheManager = new RootBeanDefinition(clazz);
    MutablePropertyValues cacheManagerProperties = new MutablePropertyValues();
    cacheManager.setPropertyValues(cacheManagerProperties);

    PropertyValue configLocation = parseConfigLocationProperty(element);
    cacheManagerProperties.addPropertyValue(configLocation);
    registry.registerBeanDefinition(id, cacheManager);

    BeanDefinition cacheProviderFacade = registry
        .getBeanDefinition(cacheProviderFacadeId);
    cacheProviderFacade.getPropertyValues().addPropertyValue("cacheManager",
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

    parser = (AbstractCacheManagerAndProviderFacadeParser) parserControl
        .getMock();
    registry = new DefaultListableBeanFactory();

    cacheProviderFacade = new RootBeanDefinition(CacheProviderFacade.class);
    cacheProviderFacade.setPropertyValues(new MutablePropertyValues());
    registry.registerBeanDefinition(BeanName.CACHE_PROVIDER_FACADE,
        cacheProviderFacade);
  }
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

   * "attributes" properties should have a
   * <code>{@link RuntimeBeanReference}</code> to the bean declaration
   * describing an instance of <code>{@link CommonsAttributes}</code>.
   */
  public void testConfigureCachingInterceptor() {
    MutablePropertyValues propertyValues = new MutablePropertyValues();
    parser.configureCachingInterceptor(propertyValues, registry);
    assertAttributesPropertyIsPresent(propertyValues);
  }
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

    parser.configureCachingInterceptor(propertyValues, registry);
    assertAttributesPropertyIsPresent(propertyValues);
  }

  public void testConfigureFlushingInterceptor() {
    MutablePropertyValues propertyValues = new MutablePropertyValues();
    parser.configureFlushingInterceptor(propertyValues, registry);
    assertAttributesPropertyIsPresent(propertyValues);
  }
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

        propertySource);

    // verify the properties of the caching interceptor.
    AbstractBeanDefinition cachingInterceptor = (AbstractBeanDefinition) registry
        .getBeanDefinition(config.cachingInterceptorId);
    MutablePropertyValues cachingProperties = cachingInterceptor
        .getPropertyValues();

    assertSame(propertySource.cacheKeyGenerator, cachingProperties
        .getPropertyValue("cacheKeyGenerator").getValue());
    assertSame(propertySource.cacheProviderFacadeReference, cachingProperties
        .getPropertyValue("cacheProviderFacade").getValue());
    assertSame(propertySource.cachingListeners, cachingProperties
        .getPropertyValue("cachingListeners").getValue());
    assertSame(propertySource.cachingModelMap, cachingProperties
        .getPropertyValue("cachingModels").getValue());

    // verify the properties of the flushing interceptor.
    AbstractBeanDefinition flushingInterceptor = (AbstractBeanDefinition) registry
        .getBeanDefinition(config.flushingInterceptorId);
    MutablePropertyValues flushingProperties = flushingInterceptor
        .getPropertyValues();

    assertSame(propertySource.cacheProviderFacadeReference, flushingProperties
        .getPropertyValue("cacheProviderFacade").getValue());
    assertSame(propertySource.flushingModelMap, flushingProperties
        .getPropertyValue("flushingModels").getValue());
  }
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

    BeanDefinitionRegistry registry = parserContext.getRegistry();

    RootBeanDefinition documentHandlerFactoryBeanDefinition = new RootBeanDefinition(
                        DocumentHandlerManagerFactoryBean.class);
    documentHandlerFactoryBeanDefinition.setPropertyValues(new MutablePropertyValues());
    documentHandlerFactoryBeanDefinition.getPropertyValues().addPropertyValue(
            "documentHandlerManagerClass", ExtensionDocumentHandlerManager.class);
    documentHandlerFactoryBeanDefinition.getPropertyValues().addPropertyValue(
                  "documentMatchingClass", ExtensionDocumentMatching.class);
    registry.registerBeanDefinition(id, documentHandlerFactoryBeanDefinition);
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

    BeanDefinitionRegistry registry = parserContext.getRegistry();

    RootBeanDefinition resourceAdviceBeanDefinition = new RootBeanDefinition(
        ResourceInterceptor.class);

    resourceAdviceBeanDefinition.setPropertyValues(new MutablePropertyValues());
    resourceAdviceBeanDefinition.getPropertyValues()
        .addPropertyValue(RESOURCE_MANAGER_ATTRIBUTE, new RuntimeBeanReference(resourceManagerRef));

    configureAttributes(element, resourceAdviceBeanDefinition, parserContext);
   
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

      registry.registerBeanDefinition(id, concurrentIndexFactoryBeanDefinition);
    } else */if( LOCK.equals(concurrent)) {
      RootBeanDefinition concurrentIndexFactoryBeanDefinition = new RootBeanDefinition(
                                    LockIndexFactory.class);
      concurrentIndexFactoryBeanDefinition.setPropertyValues(new MutablePropertyValues());
      concurrentIndexFactoryBeanDefinition.getPropertyValues()
        .addPropertyValue(TARGET_INDEX_FACTORY_ATTRIBUTE, new RuntimeBeanReference(idIndexFactory));

      registry.registerBeanDefinition(id, concurrentIndexFactoryBeanDefinition);
    }
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

    registry.registerBeanDefinition(RAM_DIRECTORY_ID_PREFIX + id, ramDirectoryBeanDefinition);

    //Definition of the index factory
    RootBeanDefinition simpleIndexFactoryBeanDefinition = new RootBeanDefinition(
                          SimpleIndexFactoryBean.class);
    simpleIndexFactoryBeanDefinition.setPropertyValues(new MutablePropertyValues());
    simpleIndexFactoryBeanDefinition.getPropertyValues()
        .addPropertyValue(DIRECTORY_ATTRIBUTE, new RuntimeBeanReference(RAM_DIRECTORY_ID_PREFIX + id));
    simpleIndexFactoryBeanDefinition.getPropertyValues()
        .addPropertyValue(CREATE_ATTRIBUTE, new Boolean(create));
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.