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


    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

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

    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

       
        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

        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

       
        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

        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 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 ModuleOperation getOperation(String name) {
    ModuleOperation moduleOperation = operations.get(name);

    if (moduleOperation == null) {
      throw new NoServiceException("No instance of " + ModuleOperation.class.getName()
          + " available for operation named '" + name + "'");
    }

    return moduleOperation;
  }
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.