Package org.jboss.logging.layout

Source Code of org.jboss.logging.layout.PatternParserEx

/*    */ package org.jboss.logging.layout;
/*    */
/*    */ import org.apache.log4j.helpers.PatternConverter;
/*    */ import org.apache.log4j.helpers.PatternParser;
/*    */
/*    */ public class PatternParserEx extends PatternParser
/*    */ {
/*    */   public PatternParserEx(String pattern)
/*    */   {
/* 61 */     super(pattern);
/*    */   }
/*    */
/*    */   protected void finalizeConverter(char c)
/*    */   {
/* 66 */     PatternConverter pc = null;
/* 67 */     switch (c)
/*    */     {
/*    */     case 'z':
/* 70 */       pc = new ThreadNDCConverter(this.formattingInfo);
/* 71 */       this.currentLiteral.setLength(0);
/* 72 */       break;
/*    */     case 'Z':
/* 74 */       String key = extractOption();
/* 75 */       pc = new ThreadMDCConverter(this.formattingInfo, key);
/* 76 */       this.currentLiteral.setLength(0);
/* 77 */       break;
/*    */     default:
/* 79 */       super.finalizeConverter(c);
/* 80 */       return;
/*    */     }
/* 82 */     addConverter(pc);
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.logging.layout.PatternParserEx
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.logging.layout.PatternParserEx

TOP
Copyright © 2018 www.massapi.com. 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.