Package org.impalaframework.exception

Examples of org.impalaframework.exception.NoServiceException


    return getFacade().getRootModuleDefinition();
  }

  public static InternalOperationsFacade getFacade() {
    if (facade == null) {
      throw new NoServiceException("The application has not been initialised. Has "
          + Impala.class.getSimpleName() + ".init("
          + ModuleDefinitionSource.class.getSimpleName() + ") been called?");
    }
    return facade;
  }
View Full Code Here


  public ModificationExtractor getModificationExtractor(ModificationExtractorType type) {
    ModificationExtractor calculator = modificationExtractors.get(type);

    if (calculator == null) {
      throw new NoServiceException("No " + ModificationExtractor.class.getSimpleName()
          + " available for modification type " + type);
    }

    return calculator;
  }
View Full Code Here

     * Gets the {@link RuntimeModule} associated with the root module
     */
    public RuntimeModule getRootRuntimeModule() {
        RuntimeModule runtimeModule = getModuleStateHolder().getRootModule();
        if (runtimeModule == null) {
            throw new NoServiceException("No root application has been loaded");
        }
        return runtimeModule;
    }
View Full Code Here

    public RuntimeModule getRuntimeModule(String moduleName) {
        final RuntimeModule runtimeModule = getModuleStateHolder().getModule(moduleName);
       
        if (runtimeModule == null) {
            throw new NoServiceException("No module named '" + moduleName + "' has been loaded");
        }
       
        return runtimeModule;
    }
View Full Code Here

    /* **************************** protected methods ************************** */

    protected ModuleStateHolder getModuleStateHolder() {
       
        if (applicationManager == null) {
            throw new NoServiceException("Module state holder not present. Has Impala been initialized?");
        }
        return applicationManager.getCurrentApplication().getModuleStateHolder();
    }
View Full Code Here

        facade = null;
    }

  public static InternalOperationsFacade getFacade() {
    if (facade == null) {
      throw new NoServiceException("The application has not been initialised. Has "
          + Impala.class.getSimpleName() + ".init("
          + ModuleDefinitionSource.class.getSimpleName() + ") been called?");
    }
    return facade;
  }
View Full Code Here

        }

        return invokeDummy(invocation);
      }
      else
        throw new NoServiceException("No service available for bean " + beanName);
    }
  }
View Full Code Here

  }

  public ApplicationContext getRootContext() {
    ConfigurableApplicationContext context = internalGet();
    if (context == null) {
      throw new NoServiceException("No root application has been loaded");
    }
    return context;
  }
View Full Code Here

  }

  public ApplicationContext getModuleContext(String moduleName) {
    ApplicationContext context = getModuleStateHolder().getModule(moduleName);
    if (context == null) {
      throw new NoServiceException("No application context could be found for module " + moduleName);
    }
    return context;
  }
View Full Code Here

     * Gets the {@link RuntimeModule} associated with the root module
     */
    public RuntimeModule getRootRuntimeModule() {
        RuntimeModule runtimeModule = getModuleStateHolder().getRootModule();
        if (runtimeModule == null) {
            throw new NoServiceException("No root application has been loaded");
        }
        return runtimeModule;
    }
View Full Code Here

TOP

Related Classes of org.impalaframework.exception.NoServiceException

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.