Ejemplo n.º 1
0
        private void configureProcessEngine(AbstractBeanDefinition abstractBeanDefinition, Element element)
        {
            string procEngineRef = element.getAttribute(processEngineAttribute);

            if (StringUtils.hasText(procEngineRef))
            {
                abstractBeanDefinition.PropertyValues.add(Conventions.attributeNameToPropertyName(processEngineAttribute), new RuntimeBeanReference(procEngineRef));
            }
        }
Ejemplo n.º 2
0
        private void registerProcessScope(Element element, ParserContext parserContext)
        {
            Type clz = typeof(ProcessScope);
            BeanDefinitionBuilder  processScopeBDBuilder = BeanDefinitionBuilder.genericBeanDefinition(clz);
            AbstractBeanDefinition scopeBeanDefinition   = processScopeBDBuilder.BeanDefinition;

            scopeBeanDefinition.Role = BeanDefinition.ROLE_INFRASTRUCTURE;
            configureProcessEngine(scopeBeanDefinition, element);
            string beanName = baseBeanName(clz);

            parserContext.Registry.registerBeanDefinition(beanName, scopeBeanDefinition);
        }
Ejemplo n.º 3
0
        private void registerProcessStartAnnotationBeanPostProcessor(Element element, ParserContext parserContext)
        {
            Type clz = typeof(ProcessStartAnnotationBeanPostProcessor);

            BeanDefinitionBuilder  beanDefinitionBuilder = BeanDefinitionBuilder.genericBeanDefinition(clz);
            AbstractBeanDefinition beanDefinition        = beanDefinitionBuilder.BeanDefinition;

            beanDefinition.Role = BeanDefinition.ROLE_INFRASTRUCTURE;
            configureProcessEngine(beanDefinition, element);

            string beanName = baseBeanName(clz);

            parserContext.Registry.registerBeanDefinition(beanName, beanDefinition);
        }