1 24 25 package org.slf4j; 26 27 import org.slf4j.helpers.Util; 28 import org.slf4j.impl.StaticMarkerBinder; 29 30 43 public class MarkerFactory { 44 static IMarkerFactory markerFactory; 45 46 private MarkerFactory() { 47 } 48 49 static { 50 try { 51 markerFactory = StaticMarkerBinder.SINGLETON.getMarkerFactory(); 52 } catch (Exception e) { 53 Util.reportFailure("Could not instantiate instance of class [" 55 + StaticMarkerBinder.SINGLETON.getMarkerFactoryClassStr() + "]", e); 56 } 57 } 58 59 67 public static Marker getMarker(String name) { 68 return markerFactory.getMarker(name); 69 } 70 71 79 public static IMarkerFactory getIMarkerFactory() { 80 return markerFactory; 81 } 82 } | Popular Tags |