Examples of RootBeanDefinition


Examples of org.springframework.beans.factory.support.RootBeanDefinition

public class FeatureServiceHandlerParser extends AbstractBeanDefinitionParser {
   
    @Override
    protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) {
        BeanDefinitionBuilder factoryBuilder = BeanDefinitionBuilder.rootBeanDefinition(FeatureServiceDirectFactory.class);
        RootBeanDefinition factoryBean = (RootBeanDefinition) factoryBuilder.getBeanDefinition();
        parserContext.getRegistry().registerBeanDefinition(FlipSpringAspect.FEATURE_SERVICE_FACTORY_BEAN_NAME, factoryBean);
       
        MutablePropertyValues factoryPropertyValues = new MutablePropertyValues();
        factoryBean.setPropertyValues(factoryPropertyValues);
       
        String environmentBean = element.getAttribute("environment");
        if (environmentBean != null && !environmentBean.isEmpty()) {
            factoryPropertyValues.addPropertyValue("environment", new RuntimeBeanNameReference(environmentBean));
        }
View Full Code Here

Examples of org.springframework.beans.factory.support.RootBeanDefinition

      BeanDefinitionRegistry registry,
      CacheSetupStrategyPropertySource propertySource) {

    MutablePropertyValues propertyValues = new MutablePropertyValues();

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

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

Examples of org.springframework.beans.factory.support.RootBeanDefinition

      BeanDefinitionRegistry registry,
      CacheSetupStrategyPropertySource propertySource) {

    MutablePropertyValues propertyValues = new MutablePropertyValues();

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

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

Examples of org.springframework.beans.factory.support.RootBeanDefinition

  protected void registerCustomBeans(BeanDefinitionRegistry registry) {
    // no implementation
  }

  private void registerAutoproxy(BeanDefinitionRegistry registry) {
    RootBeanDefinition autoproxy = new RootBeanDefinition(
        DefaultAdvisorAutoProxyCreator.class);
    registry.registerBeanDefinition("autoproxy", autoproxy);
  }
View Full Code Here

Examples of org.springframework.beans.factory.support.RootBeanDefinition

    registry.registerBeanDefinition("autoproxy", autoproxy);
  }

  private void registerCachingAdvisor(BeanDefinitionRegistry registry) {
    Class cachingAdvisorClass = CachingAttributeSourceAdvisor.class;
    RootBeanDefinition cachingAdvisor = new RootBeanDefinition(
        cachingAdvisorClass);
    cachingAdvisor.getConstructorArgumentValues().addGenericArgumentValue(
        new RuntimeBeanReference(BeanName.CACHING_INTERCEPTOR));
    registry.registerBeanDefinition(cachingAdvisorClass.getName(),
        cachingAdvisor);
  }
View Full Code Here

Examples of org.springframework.beans.factory.support.RootBeanDefinition

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

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

    configureCachingInterceptor(propertyValues, registry);

    String beanName = BeanName.CACHING_INTERCEPTOR;
View Full Code Here

Examples of org.springframework.beans.factory.support.RootBeanDefinition

    registry.registerBeanDefinition(beanName, cachingInterceptor);
  }

  private void registerFlushingAdvisor(BeanDefinitionRegistry registry) {
    Class flushingAdvisorClass = FlushingAttributeSourceAdvisor.class;
    RootBeanDefinition flushingAdvisor = new RootBeanDefinition(
        flushingAdvisorClass);
    flushingAdvisor.getConstructorArgumentValues().addGenericArgumentValue(
        new RuntimeBeanReference(BeanName.FLUSHING_INTERCEPTOR));
    registry.registerBeanDefinition(flushingAdvisorClass.getName(),
        flushingAdvisor);
  }
View Full Code Here

Examples of org.springframework.beans.factory.support.RootBeanDefinition

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

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

    configureFlushingInterceptor(propertyValues, registry);

    String beanName = BeanName.FLUSHING_INTERCEPTOR;
View Full Code Here

Examples of org.springframework.beans.factory.support.RootBeanDefinition

    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();
View Full Code Here

Examples of org.springframework.beans.factory.support.RootBeanDefinition

        // expectations for parsing caching listeners.
        List cachingListeners = new ArrayList();
        for ( int i = 0; i < listenerCount; i++ )
        {
            String refId = elementBuilder.cachingListenerElementBuilders[i].refId;
            registry.registerBeanDefinition( refId, new RootBeanDefinition( CachingListener.class ) );

            Element cachingListenerElement = elementBuilder.cachingListenerElementBuilders[i].toXml();

            // parse caching listener element
            beanReferenceParser.parse( cachingListenerElement, parserContext, true );
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.