Examples of MutablePropertyValues


Examples of org.springframework.beans.MutablePropertyValues

    }

    private BindingResult bindAndValidate(HttpServletRequest request, Object formObject) {
        WebDataBinder binder = new WebDataBinder(formObject);
        binder.setValidator(validator);
        binder.bind(new MutablePropertyValues(request.getParameterMap()));
        binder.getValidator().validate(binder.getTarget(), binder.getBindingResult());
        return binder.getBindingResult();
    }
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

  private void registerCachingInterceptor(String cachingInterceptorId,
      BeanDefinitionRegistry registry,
      CacheSetupStrategyPropertySource propertySource) {

    MutablePropertyValues propertyValues = new MutablePropertyValues();

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

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

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

Examples of org.springframework.beans.MutablePropertyValues

  private void registerFlushingInterceptor(String flushingInterceptorId,
      BeanDefinitionRegistry registry,
      CacheSetupStrategyPropertySource propertySource) {

    MutablePropertyValues propertyValues = new MutablePropertyValues();

    RootBeanDefinition flushingInterceptor = new RootBeanDefinition(
        MethodMapFlushingInterceptor.class, propertyValues);

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

    registry.registerBeanDefinition(flushingInterceptorId, flushingInterceptor);
  }
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

  }

  private void registerCachingInterceptor(BeanDefinitionRegistry registry,
      CacheSetupStrategyPropertySource propertySource) {

    MutablePropertyValues propertyValues = new MutablePropertyValues();
    propertyValues.addPropertyValue(propertySource
        .getCacheKeyGeneratorProperty());
    propertyValues.addPropertyValue(propertySource
        .getCacheProviderFacadeProperty());
    propertyValues.addPropertyValue(propertySource
        .getCachingListenersProperty());
    propertyValues.addPropertyValue(propertySource.getCachingModelsProperty());

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

    configureCachingInterceptor(propertyValues, registry);
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

  }

  private void registerFlushingInterceptor(BeanDefinitionRegistry registry,
      CacheSetupStrategyPropertySource propertySource) {

    MutablePropertyValues propertyValues = new MutablePropertyValues();
    propertyValues.addPropertyValue(propertySource
        .getCacheProviderFacadeProperty());
    propertyValues.addPropertyValue(propertySource.getFlushingModelsProperty());

    RootBeanDefinition flushingInterceptor = new RootBeanDefinition(
        MetadataFlushingInterceptor.class, propertyValues);

    configureFlushingInterceptor(propertyValues, registry);
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

  public AnnotationsParserTests(String name) {
    super(name);
  }

  public void testConfigureCachingInterceptor() {
    MutablePropertyValues propertyValues = new MutablePropertyValues();
    parser.configureCachingInterceptor(propertyValues, registry);

    Class targetClass = AnnotationCachingAttributeSource.class;
    String beanName = targetClass.getName();
    AbstractBeanDefinition definition = (AbstractBeanDefinition) registry
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

    ConfigAssert.assertPropertyIsPresent(propertyValues, expected);
  }

  public void testConfigureFlushingInterceptor() {
    MutablePropertyValues propertyValues = new MutablePropertyValues();
    parser.configureFlushingInterceptor(propertyValues, registry);

    Class targetClass = AnnotationFlushingAttributeSource.class;
    String beanName = targetClass.getName();
    AbstractBeanDefinition definition = (AbstractBeanDefinition) registry
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

   * </ul>
   *
   * @return all the properties stored in this object.
   */
  public MutablePropertyValues getAllProperties() {
    MutablePropertyValues allPropertyValues = new MutablePropertyValues();
    allPropertyValues.addPropertyValue(getCacheKeyGeneratorProperty());
    allPropertyValues.addPropertyValue(getCacheProviderFacadeProperty());
    allPropertyValues.addPropertyValue(getCachingListenersProperty());
    allPropertyValues.addPropertyValue(getCachingModelsProperty());
    allPropertyValues.addPropertyValue(getFlushingModelsProperty());

    return allPropertyValues;
  }
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

      throws IllegalStateException {
    String id = element.getAttribute("id");

    // create the cache provider facade
    Class clazz = getCacheProviderFacadeClass();
    MutablePropertyValues propertyValues = new MutablePropertyValues();
    RootBeanDefinition cacheProviderFacade = new RootBeanDefinition(clazz,
        propertyValues);
    propertyValues.addPropertyValue(parseFailQuietlyEnabledProperty(element));
    propertyValues.addPropertyValue(parseSerializableFactoryProperty(element));

    BeanDefinitionRegistry registry = parserContext.getRegistry();
    registry.registerBeanDefinition(id, cacheProviderFacade);

    doParse(id, element, registry);
View Full Code Here

Examples of org.springframework.beans.MutablePropertyValues

    ConfigAssert.assertBeanDefinitionHasProperty(definition, propertySource
        .getFlushingModelsProperty());
  }

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

    pv.addPropertyValue(propertySource.getCacheProviderFacadeProperty());
    pv.addPropertyValue(propertySource.getCachingListenersProperty());
    pv.addPropertyValue(propertySource.getCachingModelsProperty());

    return pv;
  }
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.