Examples of Contribution


Examples of com.alibaba.citrus.springext.Contribution

    @Test(expected = IllegalArgumentException.class)
    public void getCp_Name_notFound() throws Exception {
        createConfigurationPoints("TEST-INF/test6/cps");
        ConfigurationPointImpl cp = (ConfigurationPointImpl) cps.getConfigurationPointByName("cp1");
        Contribution contrib = cp.getContributions().iterator().next();

        SpringExtUtil.getSiblingConfigurationPoint("not-found", contrib);
    }
View Full Code Here

Examples of com.evasion.entity.content.Contribution

                        currentBookTravelID = (Long) FacesContext.getCurrentInstance().
                        getExternalContext().getSessionMap().
                        get("currentBookTravelID");
        if (roadMap == null) {
            LOGGER.debug("Initialisation de la roadMap");
            final Contribution contrib = new Contribution("", "", null);
            final Itinerary itin = new Itinerary();
            // @TODO terminer d'implémenter la création des itinéraire.
            roadMap = new RoadMap(contrib, itin, null);
        }
    }
View Full Code Here

Examples of org.apache.hivemind.definition.Contribution

     */
    private void addSymbolSourcesConfiguration(ModuleDefinition md)
    {
        ConfigurationPointDefinition cpd = helper.addConfigurationPoint("SymbolSources", List.class.getName());

        helper.addContributionDefinition(cpd, new Contribution()
        {

            public void contribute(ContributionContext context)
            {
                List contribution = new ArrayList();
View Full Code Here

Examples of org.apache.hivemind.definition.Contribution

        ServicePointDefinition sp1 = helper.addServicePoint("StartupRunnableFixture", StartupRunnableFixture.class.getName());
        helper.addSimpleServiceImplementation(sp1, StartupRunnableFixtureImpl.class.getName(), ServiceModel.SINGLETON);

        // Add service point "StartupRunnableFixture" to Startup configuration point
        helper.addContributionDefinition("hivemind.Startup", new Contribution()
        {
            public void contribute(ContributionContext context)
            {
                List contribution = new ArrayList();
                contribution.add(context.getService(StartupRunnableFixture.class));
View Full Code Here

Examples of org.apache.hivemind.definition.Contribution

        // Startup objects must implement the java.lang.Runnable interface. Order of execution is expliclitly NOT defined.

        ConfigurationPointDefinition cpd = helper.addConfigurationPoint("Startup", List.class.getName());
       
        final List services = getDefaultStartupServices();
        helper.addContributionDefinition(cpd, new Contribution() {

            public void contribute(ContributionContext context)
            {
                List contribution = new ArrayList();
                for (Iterator iterServices = services.iterator(); iterServices.hasNext();)
View Full Code Here

Examples of org.apache.hivemind.definition.Contribution

        ConfigurationPointDefinition cpd = helper.addConfigurationPoint("ServiceModels",
                Map.class.getName());
       
        final List serviceModels = getDefaultServiceModels();
        helper.addContributionDefinition(cpd, new Contribution() {

            public void contribute(ContributionContext context)
            {
                Map contribution = new HashMap();
                for (Iterator iterServiceModels = serviceModels.iterator(); iterServiceModels.hasNext();)
View Full Code Here

Examples of org.apache.hivemind.definition.Contribution

    {

        ConfigurationPointDefinition cpd = helper.addConfigurationPoint("AutowiringStrategies", List.class.getName());
       
        final List serviceModels = getDefaultAutowiringStrategies();
        helper.addContributionDefinition(cpd, new Contribution() {

            public void contribute(ContributionContext context)
            {
                List contribution = new ArrayList();
                contribution.addAll(serviceModels);
View Full Code Here

Examples of org.apache.hivemind.definition.Contribution

        ConfigurationPointDefinitionImpl cpd = new ConfigurationPointDefinitionImpl(module, configuration.id(),
                location, visibility, method.getReturnType().getName(), Occurances.UNBOUNDED);
        module.addConfigurationPoint(cpd);
       
        // Add method implementation as initial contribution
        Contribution contribution = new MethodCallContributionConstructor(
                location, method, instanceProvider);
        ContributionDefinitionImpl cd = new ContributionDefinitionImpl(module, location, contribution, true);
        cpd.addContribution(cd);
    }
View Full Code Here

Examples of org.apache.hivemind.definition.Contribution

        }
       
        Location location = new AnnotatedModuleLocation(module.getLocation().getResource(),
                method.getDeclaringClass(), method);
       
        Contribution constructor = new MethodCallContributionConstructor(
                location, method, instanceProvider);

        ContributionDefinitionImpl cd = new ContributionDefinitionImpl(module, location, constructor, false);
        String qualifiedConfigurationId = IdUtils.qualify(
                module.getId(),
View Full Code Here

Examples of org.apache.hivemind.definition.Contribution

        ServicePointDefinition sp1 = helper.addServicePoint("Loud", Runnable.class.getName());
        helper.addSimpleServiceImplementation(sp1, LoudRunner.class.getName(), serviceModel);

        // Add service point "Loud" to EagerLoad configuration point
        helper.addContributionDefinition("hivemind.EagerLoad", new Contribution()
        {
            public void contribute(ContributionContext context)
            {
                List contribution = new ArrayList();
                contribution.add(context.getDefiningModule().getServicePoint("hivemind.test.services.Loud"));
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.