Examples of addDependsOn()


Examples of org.apache.aries.blueprint.mutable.MutableBeanMetadata.addDependsOn()

        MutableBeanMetadata e = context.createMetadata(MutableBeanMetadata.class);
        e.setId(id);
        e.setRuntimeClass(fact.getObjectType());
        e.setFactoryComponent(ef);
        e.setFactoryMethod("getObject");
        e.addDependsOn(".camelBlueprint.processor.bean." + contextId);

        context.getComponentDefinitionRegistry().registerComponentDefinition(e);
    }

    protected BlueprintContainer getBlueprintContainer(ParserContext context) {
View Full Code Here

Examples of org.apache.aries.blueprint.mutable.MutableBeanMetadata.addDependsOn()

            } else if (isAttribute(pre, name)) {
                if ("endpointName".equals(name) || "serviceName".equals(name)) {
                    QName q = parseQName(element, val);
                    endpointConfig.addProperty(name, createValue(context, q));
                } else if ("depends-on".equals(name)) {
                    endpointConfig.addDependsOn(val);
                } else if (!"name".equals(name)) {
                    endpointConfig.addProperty(name, AbstractBPBeanDefinitionParser.createValue(context, val));
                }
            }
        }
View Full Code Here

Examples of org.apache.aries.blueprint.mutable.MutableBeanMetadata.addDependsOn()

            } else if (isAttribute(pre, name)) {
                if ("endpointName".equals(name) || "serviceName".equals(name)) {
                    QName q = parseQName(element, val);
                    endpointConfig.addProperty(name, createValue(context, q));
                } else if ("depends-on".equals(name)) {
                    endpointConfig.addDependsOn(val);
                } else if (!"name".equals(name)) {
                    endpointConfig.addProperty(name, AbstractBPBeanDefinitionParser.createValue(context, val));
                }
            }
        }
View Full Code Here

Examples of org.apache.aries.blueprint.mutable.MutableBeanMetadata.addDependsOn()

            String name = node.getLocalName();
            if ("camelContextId".equals(name)) {
                camelContextId = val;
            }
        }
        config.addDependsOn(camelContextId);
        config.addProperty("camelContext", createRef(context, camelContextId));
        return config;
    }

}
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addDependsOn()

    String customImplementationBeanName = registerCustomImplementation(configuration);

    if (customImplementationBeanName != null) {
      builder.addPropertyReference("customImplementation", customImplementationBeanName);
      builder.addDependsOn(customImplementationBeanName);
    }

    RootBeanDefinition evaluationContextProviderDefinition = new RootBeanDefinition(
        ExtensionAwareEvaluationContextProvider.class);
    evaluationContextProviderDefinition.setSource(configuration.getSource());
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addDependsOn()

                createdFromAPI = true;
            } else if ("abstract".equals(name)) {
                factoryBean.setAbstract(true);
                bean.setAbstract(true);
            } else  if ("depends-on".equals(name)) {
                factoryBean.addDependsOn(val);
                bean.addDependsOn(val);
            } else if (!"id".equals(name) && !"name".equals(name) && isAttribute(pre, name)) {
                if ("bus".equals(name)) {
                    setBus = true;
                    if (!val.startsWith("#")) {
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addDependsOn()

        BeanDefinitionBuilder builder = super.createBeanDefinitionBuilder(element, beanClass);
        String global = element.getAttribute(AbstractMuleBeanDefinitionParser.ATTRIBUTE_REF);
        if (StringUtils.isNotBlank(global))
        {
            builder.addConstructorArgReference(global);
            builder.addDependsOn(global);
        }
        return builder;
    }

    @Override
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addDependsOn()

                createdFromAPI = true;
            } else if ("abstract".equals(name)) {
                factoryBean.setAbstract(true);
                bean.setAbstract(true);
            } else  if ("depends-on".equals(name)) {
                factoryBean.addDependsOn(val);
                bean.addDependsOn(val);
            } else if (!"id".equals(name) && !"name".equals(name) && isAttribute(pre, name)) {
                if ("bus".equals(name)) {
                    setBus = true;
                    if (!val.startsWith("#")) {
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addDependsOn()

                createdFromAPI = true;
            } else if ("abstract".equals(name)) {
                factoryBean.setAbstract(true);
                bean.setAbstract(true);
            } else  if ("depends-on".equals(name)) {
                factoryBean.addDependsOn(val);
                bean.addDependsOn(val);
            } else if (!"id".equals(name) && !"name".equals(name) && isAttribute(pre, name)) {
                if ("bus".equals(name)) {
                    setBus = true;
                }
View Full Code Here

Examples of org.springframework.beans.factory.support.BeanDefinitionBuilder.addDependsOn()

            javascript = StringUtils.capitalize(beanRef);
        }
        BeanDefinitionBuilder beanCreator = BeanDefinitionBuilder.rootBeanDefinition(BeanCreator.class);
        beanCreator.addPropertyValue("beanClass", resolveBeanClassname(beanRefDefinition, registry));
        beanCreator.addPropertyValue("beanId", beanRef);
        beanCreator.addDependsOn(beanRef);
        beanCreator.addPropertyValue("javascript", javascript);
        BeanDefinitionBuilder creatorConfig = BeanDefinitionBuilder.rootBeanDefinition(CreatorConfig.class);
        creatorConfig.addPropertyValue("creator", beanCreator.getBeanDefinition());
        configureCreator(registry, javascript, creatorConfig, proxyElement.getChildNodes());
        registerCreator(registry, creatorConfig, javascript);
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.