From 88b7cf3e36ddb84451fbe8ae1f60a496a2e118c5 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Sat, 9 Aug 2008 23:28:59 +0000 Subject: [PATCH] Renamed InternalLoggerFactory.get/setDefault to get/setDefaultFactory to clarify its meaning. --- .../netty/logging/InternalLoggerFactory.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/jboss/netty/logging/InternalLoggerFactory.java b/src/main/java/org/jboss/netty/logging/InternalLoggerFactory.java index a65cc0e3d5..1a3b225730 100644 --- a/src/main/java/org/jboss/netty/logging/InternalLoggerFactory.java +++ b/src/main/java/org/jboss/netty/logging/InternalLoggerFactory.java @@ -30,17 +30,17 @@ package org.jboss.netty.logging; * */ public abstract class InternalLoggerFactory { - private static volatile InternalLoggerFactory defaultInstance = new JdkLoggerFactory(); + private static volatile InternalLoggerFactory defaultFactory = new JdkLoggerFactory(); - public static InternalLoggerFactory getDefault() { - return defaultInstance; + public static InternalLoggerFactory getDefaultFactory() { + return defaultFactory; } - public static void setDefault(InternalLoggerFactory defaultInstance) { - if (defaultInstance == null) { - throw new NullPointerException("defaultInstance"); + public static void setDefaultFactory(InternalLoggerFactory defaultFactory) { + if (defaultFactory == null) { + throw new NullPointerException("defaultFactory"); } - InternalLoggerFactory.defaultInstance = defaultInstance; + InternalLoggerFactory.defaultFactory = defaultFactory; } public static InternalLogger getInstance(Class clazz) { @@ -48,7 +48,7 @@ public abstract class InternalLoggerFactory { } public static InternalLogger getInstance(String name) { - return getDefault().newInstance(name); + return getDefaultFactory().newInstance(name); } public abstract InternalLogger newInstance(String name);