Package org.impalaframework.exception

Examples of org.impalaframework.exception.NoServiceException


    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

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

  }

  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 getModuleContext(String moduleName) {
    RuntimeModule runtimeModule = getModuleStateHolder().getModule(moduleName);
    if (runtimeModule == null) {
      throw new NoServiceException("No runtime module " + moduleName + " is available");
    }
    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

    return bean;
  }

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

        }

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

       
        key = key.toLowerCase();
       
        Object value = entries.get(key);
        if (mandatory && value == null) {
            throw new NoServiceException("No instance of " + type.getName()
                    + " available for key '" + key + "'. Available entries: " + entries.keySet());
        }
       
        return ObjectUtils.cast(value, type);
    }
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

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.