Examples of addContribution()


Examples of org.apache.hivemind.definition.ConfigurationPointDefinition.addContribution()

                                IdUtils.extractModule(configurationPointId),
                                IdUtils.stripModule(configurationPointId)),
                        unresolved.getExtension().getLocation(),
                        null);
            } else {
                configurationPoint.addContribution((ContributionDefinition) unresolved.getExtension());
            }
            iter.remove();
        }
    }
   
View Full Code Here

Examples of org.apache.hivemind.definition.impl.ConfigurationPointDefinitionImpl.addContribution()

       
        // Add method implementation as initial contribution
        Contribution contribution = new MethodCallContributionConstructor(
                location, method, instanceProvider);
        ContributionDefinitionImpl cd = new ContributionDefinitionImpl(module, location, contribution, true);
        cpd.addContribution(cd);
    }

    private void processAnnotatedContributionMethod(Method method, org.apache.hivemind.annotations.definition.Contribution contribution, ModuleDefinitionImpl module, ModuleInstanceProvider instanceProvider)
    {
        checkMethodModifiers(method, 0, "contribution");
View Full Code Here

Examples of org.apache.hivemind.parse.ModuleDescriptor.addContribution()

        cd.setConfigurationId("Fred");
        cd.setConditionalExpression("class " + Location.class.getName());

        cd.addElement(newElement("foo"));

        md.addContribution(cd);

        XmlModuleDescriptorProcessor processor = new XmlModuleDescriptorProcessor(definition,
                errorHandler);
        processor.processModuleDescriptor(md);
View Full Code Here

Examples of org.apache.hivemind.parse.ModuleDescriptor.addContribution()

        cd.setConfigurationId("Fred");
        cd.setConditionalExpression("class foo.bar.Baz");

        cd.addElement(newElement("foo"));

        md.addContribution(cd);

        XmlModuleDescriptorProcessor processor = new XmlModuleDescriptorProcessor(definition,
                errorHandler);
        processor.processModuleDescriptor(md);
View Full Code Here

Examples of org.apache.hivemind.parse.ModuleDescriptor.addContribution()

        cd.setConditionalExpression("and class foo");
        cd.setLocation(location);

        cd.addElement(newElement("bar"));

        md.addContribution(cd);

        XmlModuleDescriptorProcessor processor = new XmlModuleDescriptorProcessor(definition, eh);
        processor.processModuleDescriptor(md);

        ExtensionResolver extensionResolver = new ExtensionResolver(definition, new StrictErrorHandler());
View Full Code Here

Examples of org.apache.hivemind.parse.ModuleDescriptor.addContribution()

        cd.setConfigurationId("Fred");
        cd.setConditionalExpression("class " + Location.class.getName());

        cd.addElement(newElement("foo"));

        md.addContribution(cd);

        RegistryInfrastructureConstructor ric = new RegistryInfrastructureConstructor(eh, log, null);

        ric.addModuleDescriptor(md);
View Full Code Here

Examples of org.apache.hivemind.parse.ModuleDescriptor.addContribution()

        cd.setConfigurationId("Fred");
        cd.setConditionalExpression("class foo.bar.Baz");

        cd.addElement(newElement("bar"));

        md.addContribution(cd);

        RegistryInfrastructureConstructor ric = new RegistryInfrastructureConstructor(eh, log, null);

        ric.addModuleDescriptor(md);
View Full Code Here

Examples of org.apache.hivemind.parse.ModuleDescriptor.addContribution()

        cd.setConditionalExpression("and class foo");
        cd.setLocation(location);

        cd.addElement(newElement("bar"));

        md.addContribution(cd);

        RegistryInfrastructureConstructor ric = new RegistryInfrastructureConstructor(eh, log, null);

        ric.addModuleDescriptor(md);
View Full Code Here

Examples of org.apache.tuscany.sca.distributed.node.impl.EmbeddedNode.addContribution()

            SCADomain domain = node.attachDomain(distributedDomain);
               
            // the application components are added. The null here just gets the node
            // implementation to read a directory from the classpath with the node name
            // TODO - should be done as a management action.      
            node.addContribution(domainName, null)
           
            // start the node
            // TODO - should be done as a management action.
            node.start();
                   
View Full Code Here

Examples of org.apache.tuscany.sca.node.NodeManagerService.addContribution()

                                                        domainManagementRuntime,
                                                        domainManagementComposite);               
               
                // add contributions
                for (org.apache.tuscany.sca.domain.model.Contribution contribution : node.getContributions().values()){
                    nodeManagerService.addContribution(contribution.getContributionURI(),
                                                       contribution.getContributionURL().toString());
                }

                // deploy composite
                nodeManagerService.deployComposite(compositeName.toString());
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.