Examples of ConfigurationPointDefinition


Examples of org.apache.hivemind.definition.ConfigurationPointDefinition

     * Defines service models, providing a name and a class for each.
     */
    private void addAutowiringStrategiesConfiguration()
    {

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

            public void contribute(ContributionContext context)
View Full Code Here

Examples of org.apache.hivemind.definition.ConfigurationPointDefinition

        processor.processModuleDescriptor(zipZoop);
       
        XmlExtensionResolver extensionResolver = new XmlExtensionResolver(definition, errorHandler);
        extensionResolver.resolveSchemas();

        ConfigurationPointDefinition point = definition.getConfigurationPoint("zip.zoop.Zap");
       
        ConfigurationParserDefinition parserDef = point.getParser(HiveMindSchemaParser.INPUT_FORMAT_NAME);
        assertNotNull(parserDef);
       
        assertEquals(parserDef.getParserConstructor().getClass(), HiveMindSchemaParserConstructor.class);

        HiveMindSchemaParserConstructor constructor = (HiveMindSchemaParserConstructor) parserDef.getParserConstructor();
View Full Code Here

Examples of org.apache.hivemind.definition.ConfigurationPointDefinition

        processor.processModuleDescriptor(md);

        ExtensionResolver extensionResolver = new ExtensionResolver(definition, new StrictErrorHandler());
        extensionResolver.resolveExtensions();

        ConfigurationPointDefinition configurationPoint = definition
                .getConfigurationPoint("zip.zoop.Fred");

        assertTrue(configurationPoint.getContributions().size() > 0);

        verifyControls();
    }
View Full Code Here

Examples of org.apache.hivemind.definition.ConfigurationPointDefinition

        processor.processModuleDescriptor(md);

        ExtensionResolver extensionResolver = new ExtensionResolver(definition, new StrictErrorHandler());
        extensionResolver.resolveExtensions();

        ConfigurationPointDefinition configurationPoint = definition
                .getConfigurationPoint("zip.zoop.Fred");

        assertTrue(configurationPoint.getContributions().isEmpty());

        verifyControls();
    }
View Full Code Here

Examples of org.apache.hivemind.definition.ConfigurationPointDefinition

        processor.processModuleDescriptor(md);

        ExtensionResolver extensionResolver = new ExtensionResolver(definition, new StrictErrorHandler());
        extensionResolver.resolveExtensions();

        ConfigurationPointDefinition configurationPoint = definition
                .getConfigurationPoint("zip.zoop.Fred");

        assertTrue(configurationPoint.getContributions().isEmpty());

        verifyControls();
    }
View Full Code Here

Examples of org.apache.hivemind.definition.ConfigurationPointDefinition

        {
            ModuleDefinition module = (ModuleDefinition) iterModules.next();
           
            for (Iterator iterConfigurations = module.getConfigurationPoints().iterator(); iterConfigurations.hasNext();)
            {
                ConfigurationPointDefinition cpd = (ConfigurationPointDefinition) iterConfigurations.next();
                checkContributionCounts(module, cpd);
            }
        }
    }
View Full Code Here

Examples of org.apache.hivemind.definition.ConfigurationPointDefinition

    private void addConfigurationPoints(ModuleDefinition md, Module module)
    {
        String moduleId = md.getId();
        for (Iterator points = md.getConfigurationPoints().iterator(); points.hasNext();)
        {
            ConfigurationPointDefinition cpd = (ConfigurationPointDefinition) points.next();

            String pointId = moduleId + "." + cpd.getId();

            if (_log.isDebugEnabled())
                _log.debug("Creating configuration point " + pointId);

            ConfigurationPointImpl point = new ConfigurationPointImpl(module, cpd);
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.