Package org.impalaframework.exception

Examples of org.impalaframework.exception.NoServiceException


  }

  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

    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 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

    Assert.notNull(type, "type cannot be null");
    ModuleLoader moduleLoader = moduleLoaders.get(type.toLowerCase());

    if (failIfNotFound) {
      if (moduleLoader == null) {
        throw new NoServiceException("No " + ModuleLoader.class.getName()
            + " instance available for module definition type " + type);
      }
    }

    return moduleLoader;
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

           
            if (optionsHelper.isProceedWithNoService()) {
                return invokeDummy(invocation);
            }
            else {
                throw new NoServiceException("No service available for bean " + beanName);
            }
        }
    }
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

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.