Package com.m4f.business.service.exception

Examples of com.m4f.business.service.exception.ContextNotActiveException


  private <T extends Object> T getService(Class<T> clazz)
    throws ServiceNotFoundException, ContextNotActiveException {
    T bean = null;
    try {
      if(!this.servicesCtx.isRunning()) {
        throw new ContextNotActiveException("#### Context is not RUNNING....");
      }
      if(!this.servicesCtx.isActive()) {
        throw new ContextNotActiveException("#### Context is not ACTIVE....");
      }
      bean = this.servicesCtx.getBean(clazz);
    } catch(NoSuchBeanDefinitionException ex) {
      this.servicesCtx.setConfigLocation("services-config.xml");
      this.servicesCtx.stop();
View Full Code Here

TOP

Related Classes of com.m4f.business.service.exception.ContextNotActiveException

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.