Package org.apache.hivemind.definition

Examples of org.apache.hivemind.definition.ContributionDefinition


//        processConfigurationPointNatures(configurationPoint, cpd);
       
        Collection contributions = cpd.getContributions();
        for (Iterator iter = contributions.iterator(); iter.hasNext();)
        {
            ContributionDefinition contribution = (ContributionDefinition) iter.next();
            Element contributionElement = getContributionElement(contribution, cpd.getId());

            configurationPoint.appendChild(contributionElement);
           
        }
View Full Code Here


        try
        {
            for (Iterator iterContrib = contributions.iterator(); iterContrib.hasNext();)
            {
                ContributionDefinition cd = (ContributionDefinition) iterContrib.next();
                Module definingModule = getModule().getRegistry().getModule(cd.getModuleId());
                ContributionContext context = new ContributionContextImpl(definingModule, this);
                cd.getContribution().contribute(context);
            }
            // For backward compatibility create empty collections if nothing was contributed
            if (_configuration == null) {
                initEmptyCollection();
            }
View Full Code Here

    }
   
    public ContributionDefinition addContributionDefinition(ConfigurationPointDefinition configurationPoint,
            Contribution contributionConstructor)
    {
        ContributionDefinition result = new ContributionDefinitionImpl(_module, _module.getLocation(), contributionConstructor, false);
        configurationPoint.addContribution(result);
        return result;
    }
View Full Code Here

TOP

Related Classes of org.apache.hivemind.definition.ContributionDefinition

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.