Package com.caucho.config.scope

Examples of com.caucho.config.scope.ErrorContext


     
      RuntimeException exn
        = new IllegalStateException(L.l("{0} is an invalid new context because @{1} is already registered as a scope",
                                        context, scopeType.getName()));
                                       
      _contextMap.put(context.getScope(), new ErrorContext(exn, context));
    }
  }
View Full Code Here


    if (context != null && context.isActive()) {
      return context;
    }
   
    if (context instanceof ErrorContext) {
      ErrorContext cxt = (ErrorContext) context;
     
      throw cxt.getException();
    }
   
    /*
    if (! isScope(scopeType)) {
      throw new IllegalStateException(L.l("'@{0}' is not a valid scope because it does not have a @Scope annotation",
View Full Code Here

     
      RuntimeException exn
        = new IllegalStateException(L.l("{0} is an invalid new context because @{1} is already registered as a scope",
                                        context, scopeType.getName()));
                                       
      _contextMap.put(context.getScope(), new ErrorContext(exn, context));
    }
  }
View Full Code Here

    if (context != null && context.isActive()) {
      return context;
    }
   
    if (context instanceof ErrorContext) {
      ErrorContext cxt = (ErrorContext) context;
     
      throw cxt.getException();
    }
   
    /*
    if (! isScope(scopeType)) {
      throw new IllegalStateException(L.l("'@{0}' is not a valid scope because it does not have a @Scope annotation",
View Full Code Here

TOP

Related Classes of com.caucho.config.scope.ErrorContext

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.