openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1078636 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/AbstractInjectable.java
Date Sun, 06 Mar 2011 23:56:09 GMT
Author: struberg
Date: Sun Mar  6 23:56:09 2011
New Revision: 1078636

URL: http://svn.apache.org/viewvc?rev=1078636&view=rev
Log:
OWB-536 switch back to static logger and only log conditionally

this is especially important in classes which get created that often!

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/AbstractInjectable.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/AbstractInjectable.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/AbstractInjectable.java?rev=1078636&r1=1078635&r2=1078636&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/AbstractInjectable.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/AbstractInjectable.java
Sun Mar  6 23:56:09 2011
@@ -56,7 +56,7 @@ import org.apache.webbeans.util.WebBeans
  */
 public abstract class AbstractInjectable implements Injectable
 {
-    private final WebBeansLogger logger = WebBeansLogger.getLogger(AbstractInjectable.class);
+    private final static WebBeansLogger logger = WebBeansLogger.getLogger(AbstractInjectable.class);
     
     /** Owner bean of the injection point*/
     protected OwbBean<?> injectionOwnerBean;
@@ -93,7 +93,10 @@ public abstract class AbstractInjectable
      */
     public <T> Object inject(InjectionPoint injectionPoint)
     {
-        logger.debug("Injected into bean : [{0}] with injection point : [{1}]", this.injectionOwnerBean,
injectionPoint);
+        if (logger.wblWillLogDebug())
+        {
+            logger.debug("Injected into bean : [{0}] with injection point : [{1}]", this.injectionOwnerBean,
injectionPoint);
+        }
 
         Object injected = null;               
 



Mime
View raw message