Package com.p6spy.engine.logging

Examples of com.p6spy.engine.logging.Category


    } else if (type.isAssignableFrom(Collection.class) || type.isAssignableFrom(List.class)) {
      throw new IllegalArgumentException("type not supported:" + type.getName());
    } else if (type.isAssignableFrom(Pattern.class)) {
      return Pattern.compile(value.toString());
    } else if (type.isAssignableFrom(Category.class)) {
      return new Category(value.toString());
    } else {
//    if (type.isEnum()) {
//        // is sufficient for our use case where toString returns enum name
//        for (T enumConstant : type.getEnumConstants()) {
//           if (enumConstant.toString().equalsIgnoreCase(value.toString())) {
View Full Code Here


    checkCategoryToInfoLevelMapping(Category.COMMIT);
    checkCategoryToInfoLevelMapping(Category.ROLLBACK);
    checkCategoryToInfoLevelMapping(Category.RESULT);
    checkCategoryToInfoLevelMapping(Category.OUTAGE);
   
    checkCategoryToInfoLevelMapping(new Category("newly_created_category"));
  }
View Full Code Here

TOP

Related Classes of com.p6spy.engine.logging.Category

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.