Package org.springframework.beans

Examples of org.springframework.beans.PropertyValue


    public void testFeatureServiceFactoryPropertiesWithEnvironment() {
        setupContext("test-feature-service-context-with-env.xml");
        BeanDefinition beanDefinition = context.getBeanDefinition("featureServiceFactory");

        // Test ContextProviders setup
        PropertyValue environmentProperty = beanDefinition.getPropertyValues().getPropertyValue("environment");
        assertNotNull(environmentProperty);
       
        assertTrue(environmentProperty.getValue() instanceof BeanReference);
        assertEquals("environmentBean", ((BeanReference)environmentProperty.getValue()).getBeanName());
    }
View Full Code Here


    AbstractBeanDefinition definition = (AbstractBeanDefinition) registry
        .getBeanDefinition(beanName);

    ConfigAssert.assertBeanDefinitionWrapsClass(definition, targetClass);

    PropertyValue expected = new PropertyValue("cachingAttributeSource",
        new RuntimeBeanReference(beanName));

    ConfigAssert.assertPropertyIsPresent(propertyValues, expected);
  }
View Full Code Here

    AbstractBeanDefinition definition = (AbstractBeanDefinition) registry
        .getBeanDefinition(beanName);

    ConfigAssert.assertBeanDefinitionWrapsClass(definition, targetClass);

    PropertyValue expected = new PropertyValue("flushingAttributeSource",
        new RuntimeBeanReference(beanName));

    ConfigAssert.assertPropertyIsPresent(propertyValues, expected);
  }
View Full Code Here

    return allPropertyValues;
  }

  public PropertyValue getCacheKeyGeneratorProperty() {
    return new PropertyValue("cacheKeyGenerator", cacheKeyGenerator);
  }
View Full Code Here

  public PropertyValue getCacheKeyGeneratorProperty() {
    return new PropertyValue("cacheKeyGenerator", cacheKeyGenerator);
  }
 
  public PropertyValue getCacheProviderFacadeProperty() {
    return new PropertyValue("cacheProviderFacade",
        cacheProviderFacadeReference);
  }
View Full Code Here

    return new PropertyValue("cacheProviderFacade",
        cacheProviderFacadeReference);
  }

  public PropertyValue getCachingListenersProperty() {
    return new PropertyValue("cachingListeners", cachingListeners);
  }
View Full Code Here

  public PropertyValue getCachingListenersProperty() {
    return new PropertyValue("cachingListeners", cachingListeners);
  }

  public PropertyValue getCachingModelsProperty() {
    return new PropertyValue("cachingModels", cachingModelMap);
  }
View Full Code Here

  public PropertyValue getCachingModelsProperty() {
    return new PropertyValue("cachingModels", cachingModelMap);
  }

  public PropertyValue getFlushingModelsProperty() {
    return new PropertyValue("flushingModels", flushingModelMap);
  }
View Full Code Here

   */
  private PropertyValue parseFailQuietlyEnabledProperty(Element element) {
    String failQuietlyAttr = element.getAttribute("failQuietly");
    Boolean value = "true".equalsIgnoreCase(failQuietlyAttr) ? Boolean.TRUE
        : Boolean.FALSE;
    return new PropertyValue("failQuietlyEnabled", value);
  }
View Full Code Here

    String serializableFactoryAttr = element
        .getAttribute("serializableFactory");

    if (!StringUtils.hasText(serializableFactoryAttr)
        || SerializableFactory.NONE.equalsIgnoreCase(serializableFactoryAttr)) {
      return new PropertyValue(PropertyName.SERIALIZABLE_FACTORY, null);
    }

    if (SerializableFactory.XSTREAM.equalsIgnoreCase(serializableFactoryAttr)) {
      return new PropertyValue(PropertyName.SERIALIZABLE_FACTORY,
          new XStreamSerializableFactory());
    }

    throw new IllegalStateException(StringUtils.quote(serializableFactoryAttr)
        + " is not a serializableFactory. Valid values include "
View Full Code Here

TOP

Related Classes of org.springframework.beans.PropertyValue

Copyright © 2018 www.massapicom. 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.