Package org.impalaframework.exception

Examples of org.impalaframework.exception.NoServiceException


    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


  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

  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

    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

    if (type == null) return null;
    type = type.toLowerCase();
   
    TypeReader typeReader = typeReaders.get(type);
    if (typeReader == null) {
      throw new NoServiceException("No instance of " + TypeReader.class.getName()
          + " available for type named '" + type + "'. Available types: " + typeReaders.keySet());
    }
   
    return typeReader;
  }
View Full Code Here

  public TransitionProcessor getTransitionProcessor(Transition transition) {
    Assert.notNull(transitionProcessors, "transitionProcessors cannot be null");
    TransitionProcessor processor = transitionProcessors.get(transition);

    if (processor == null) {
      throw new NoServiceException("No " + TransitionProcessor.class.getSimpleName() + " set up for transition "
          + transition);
    }

    return processor;
  }
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 (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

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.