Package org.impalaframework.module.definition

Examples of org.impalaframework.module.definition.ModuleDefinitionSource


      throws BeansException {

    ModuleManagementFactory factory = createBootStrapFactory(servletContext);

    // load the parent context, which is web-independent
    ModuleDefinitionSource moduleDefinitionSource = getModuleDefinitionSource(servletContext, factory);
   
    ModuleOperationInput input = new ModuleOperationInput(moduleDefinitionSource, null, null);
    ModuleOperation operation = factory.getModuleOperationRegistry().getOperation(ModuleOperationConstants.UpdateRootModuleOperation);   
    operation.execute(input);
View Full Code Here


    }

    Collections.reverse(modulesToLoad);
    this.parentDefinition = parent;
   
    ModuleDefinitionSource internalModuleBuilder = getModuleBuilder();
    return internalModuleBuilder.getModuleDefinition();
  }
View Full Code Here

    inspectModules();
    return buildModules();
  }

  protected RootModuleDefinition buildModules() {
    ModuleDefinitionSource internalModuleBuilder = getModuleBuilder();
    return internalModuleBuilder.getModuleDefinition();
  }
View Full Code Here

          "No instance of "
              + ModuleManagementFacade.class.getName()
              + " found. Your context loader needs to be configured to create an instance of this class and attach it to the ServletContext using the attribue WebConstants.IMPALA_FACTORY_ATTRIBUTE");
    }

    ModuleDefinitionSource source = (ModuleDefinitionSource) servletContext
        .getAttribute(WebConstants.MODULE_DEFINITION_SOURCE_ATTRIBUTE);
    if (source == null) {
      throw new ConfigurationException(
          "No instance of "
              + ModuleDefinitionSource.class.getName()
View Full Code Here

          "No instance of "
              + ModuleManagementFactory.class.getName()
              + " found. Your context loader needs to be configured to create an instance of this class and attach it to the ServletContext using the attribue WebConstants.IMPALA_FACTORY_ATTRIBUTE");
    }

    ModuleDefinitionSource source = (ModuleDefinitionSource) servletContext
        .getAttribute(WebConstants.MODULE_DEFINITION_SOURCE_ATTRIBUTE);
    if (source == null) {
      throw new ConfigurationException(
          "No instance of "
              + ModuleDefinitionSource.class.getName()
View Full Code Here

    }
   
    setNewOperationsFacade(facade);
    bundleContext.registerService(OperationsFacade.class.getName(), operations, null);
   
    ModuleDefinitionSource moduleDefinitionSource = maybeGetModuleDefinitionSource(bundleContext, facade);
   
    if (moduleDefinitionSource != null) {
     
      logger.info("Found module definition source for bootstrapping Impala modules: " + moduleDefinitionSource);
      operations.init(moduleDefinitionSource);
View Full Code Here

    return new SimpleOperationsFacade(facade);
  }

  ModuleDefinitionSource maybeGetModuleDefinitionSource(BundleContext bundleContext, ModuleManagementFacade facade) {
   
    ModuleDefinitionSource moduleDefinitionSource = null;
   
    //TODO use dictionary property to distinguish between possible different services with the same interface
    ServiceReference serviceReference = bundleContext.getServiceReference(ModuleDefinitionSource.class.getName());
   
    if (serviceReference != null) {
View Full Code Here

    inspectModules();
    return buildModules();
  }

  protected RootModuleDefinition buildModules() {
    ModuleDefinitionSource internalModuleBuilder = getModuleBuilder();
    return internalModuleBuilder.getModuleDefinition();
  }
View Full Code Here

TOP

Related Classes of org.impalaframework.module.definition.ModuleDefinitionSource

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.