Examples of ModuleDefinition


Examples of org.apache.hivemind.definition.ModuleDefinition

    public void testGetServiceIdsInterfaceNotFound()
    {
        RegistryInfrastructureImpl r = new RegistryInfrastructureImpl( null, null );
        final ModuleImpl module1 = new ModuleImpl();
        ModuleDefinition moduleDefinition = createModuleDefinition("module1");
        module1.setClassResolver( new DefaultClassResolver() );
        module1.setModuleId( "module1" );
        r.addServicePoint( createServicePoint(moduleDefinition, module1, "module1.foo", "com.evilsite.some.bogus.package.SomeBogusInterface.", Visibility.PUBLIC ) );
        assertEquals( new HashSet(), new HashSet( r.getServiceIds( ResultSet.class ) ) );
    }
View Full Code Here

Examples of org.apache.hivemind.definition.ModuleDefinition

    }

    public void testGetServiceIds()
    {
        RegistryInfrastructureImpl r = new RegistryInfrastructureImpl( null, null );
        ModuleDefinition moduleDefinition = createModuleDefinition("module1");
        assertTrue( r.getServiceIds( ResultSet.class ).isEmpty() );
        final ModuleImpl module1 = new ModuleImpl();
        module1.setClassResolver( new DefaultClassResolver() );
        module1.setModuleId( "module1" );
        r.addServicePoint( createServicePoint(moduleDefinition, module1, "foo", ResultSet.class, Visibility.PUBLIC ) );
View Full Code Here

Examples of org.apache.hivemind.definition.ModuleDefinition

     */
    private void checkDependencies(RegistryDefinition definition)
    {
        for (Iterator iterModules = definition.getModules().iterator(); iterModules.hasNext();)
        {
            ModuleDefinition module = (ModuleDefinition) iterModules.next();
           
            for (Iterator iterDependencies = module.getDependencies().iterator(); iterDependencies.hasNext();)
            {
                String requiredModuleId = (String) iterDependencies.next();
                checkModuleDependency(definition, module, requiredModuleId);
            }
        }
View Full Code Here

Examples of org.apache.hivemind.definition.ModuleDefinition

       
    }

    private void checkModuleDependency(RegistryDefinition definition, ModuleDefinition sourceModule, String requiredModuleId)
    {
        ModuleDefinition requiredModule = (ModuleDefinition) definition.getModule(requiredModuleId);
        if (requiredModule == null)
        {
            // TODO: Include Location in Dependencies
            _errorHandler.error(
                    LOG,
View Full Code Here

Examples of org.apache.hivemind.definition.ModuleDefinition

     */
    public void checkContributionCounts(RegistryDefinition definition)
    {
        for (Iterator iterModules = definition.getModules().iterator(); iterModules.hasNext();)
        {
            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.ModuleDefinition

        // Add each module to the registry.

        Iterator i = definition.getModules().iterator();
        while (i.hasNext())
        {
            ModuleDefinition module = (ModuleDefinition) i.next();

            if (_log.isDebugEnabled())
                _log.debug("Adding module " + module.getId() + " to registry");

            addModule(module);
        }
    }
View Full Code Here

Examples of org.apache.hivemind.definition.ModuleDefinition

        Location l = newLocation();
        Module module = newModule();

        replayControls();

        ModuleDefinition moduleDef = createModuleDefinition("module");
        ServicePointImpl sp = newServicePoint(moduleDef, l, module);
       
        InterceptorDefinition interceptor1 = new OrderedInterceptorDefinitionImpl(moduleDef, "Interceptor1", null, null,
                null, null);
        sp.getServicePointDefinition().addInterceptor(interceptor1);
View Full Code Here

Examples of org.apache.hivemind.definition.ModuleDefinition

        Location l = newLocation();
        Module module = newModule();

        replayControls();

        ModuleDefinition moduleDef = createModuleDefinition("module");
        ServicePointImpl sp = newServicePoint(moduleDef, l, module);
       
        InterceptorDefinition interceptor1 = new OrderedInterceptorDefinitionImpl(moduleDef, "Interceptor1", null, null,
                null, null);
        sp.getServicePointDefinition().addInterceptor(interceptor1);
View Full Code Here

Examples of org.fenrir.yggdrasil.core.definition.ModuleDefinition

        catch(Exception e){
          log.error("Error recuperant la definició de l'aplicació: {}", e.getMessage(), e);
          throw new ApplicationException("Error recuperant la definició de l'aplicació: " + e.getMessage(), e);
        }
        // Inicialització dels serveis bàsics
        ModuleDefinition moduleDefinition = new ModuleDefinition();
        moduleDefinition.setId(CoreStartupModule.ID);
        moduleDefinition.setClassName(CoreStartupModule.class.getName());
        moduleDefinition.setExecutionContext(CoreConstants.EXECUTION_CONTEXT_STARTUP);
        applicationContext.getPluginRegistry().addModuleDefinition(moduleDefinition);
        applicationContext.configureContext(CoreConstants.EXECUTION_CONTEXT_STARTUP);
       
        // S'especifica directament com a listener perquè la classe Application no està gestionada per Guice
        IEventNotificationService eventNotificationService = (IEventNotificationService)applicationContext.getRegisteredComponent(IEventNotificationService.class);
View Full Code Here

Examples of org.impalaframework.module.ModuleDefinition

                if (logger.isDebugEnabled()) {
                    logger.debug("Processing module state change: " + change);
                }
               
                String transition = change.getTransition();
                ModuleDefinition currentModuleDefinition = change.getModuleDefinition();

                TransitionProcessor transitionProcessor = transitionProcessorRegistry.getTransitionProcessor(transition);
               
                TransitionResult result;
     
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.