Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.slf4j.helpers;
 /*    */ 
 /*    */ import java.util.HashMap;
 /*    */ import java.util.Map;
 /*    */ import org.slf4j.IMarkerFactory;
 /*    */ import org.slf4j.Marker;
 /*    */ 
 /*    */ public class BasicMarkerFactory
 /*    */   implements IMarkerFactory
/*    */ {
/* 44 */   Map markerMap = new HashMap();
/*    */ 
/*    */   public synchronized Marker getMarker(String name)
/*    */   {
/* 63 */     if (name == null) {
/* 64 */       throw new IllegalArgumentException("Marker name cannot be null");
/*    */     }
/*    */ 
/* 67 */     Marker marker = (Marker)this..get(name);
/* 68 */     if (marker == null) {
/* 69 */       marker = new BasicMarker(name);
/* 70 */       this..put(namemarker);
/*    */     }
/* 72 */     return marker;
/*    */   }
/*    */ 
/*    */   public synchronized boolean exists(String name)
/*    */   {
/* 79 */     if (name == null) {
/* 80 */       return false;
/*    */     }
/* 82 */     return this..containsKey(name);
/*    */   }
/*    */ 
/*    */   public boolean detachMarker(String name) {
/* 86 */     if (name == null) {
/* 87 */       return false;
/*    */     }
/* 89 */     return this..remove(name) != null;
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.slf4j.helpers.BasicMarkerFactory
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X