openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1079813 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorDataImpl.java
Date Wed, 09 Mar 2011 14:31:22 GMT
Author: struberg
Date: Wed Mar  9 14:31:22 2011
New Revision: 1079813

URL: http://svn.apache.org/viewvc?rev=1079813&view=rev
Log:
OWB-536 drop debug logs because this will get used way too often


Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorDataImpl.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorDataImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorDataImpl.java?rev=1079813&r1=1079812&r2=1079813&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorDataImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorDataImpl.java
Wed Mar  9 14:31:22 2011
@@ -47,7 +47,7 @@ import org.apache.webbeans.util.WebBeans
 public class InterceptorDataImpl implements InterceptorData
 {
     // Logger instance
-    private final WebBeansLogger logger = WebBeansLogger.getLogger(InterceptorDataImpl.class);
+    private final static WebBeansLogger logger = WebBeansLogger.getLogger(InterceptorDataImpl.class);
 
     /** Around invokes method */
     private Method aroundInvoke = null;
@@ -410,13 +410,6 @@ public class InterceptorDataImpl impleme
     @SuppressWarnings("unchecked")
     public Object createNewInstance(Object ownerInstance, CreationalContextImpl<?>
ownerCreationalContext)
     {
-        if (logger.wblWillLogDebug())
-        {
-            logger.debug("> " + ownerInstance + " " + ownerCreationalContext + " " + this);
-            logger.debug("isDefinedWithWebBeansInterceptor " + isDefinedWithWebBeansInterceptor);
-            logger.debug("definedInInterceptorClass " + definedInInterceptorClass);
-        }
-
         // check for this InterceptorData is defined by interceptor class
         if (this.isDefinedWithWebBeansInterceptor && this.definedInInterceptorClass)
         {
@@ -425,11 +418,6 @@ public class InterceptorDataImpl impleme
             // Means that it is the last interceptor added by InterceptorHandler
             if (this.webBeansInterceptor == null)
             {
-                if (logger.wblWillLogDebug())
-                {
-                    logger.debug("< " + decoratorInterceptor);
-                }
-
                 return this.decoratorInterceptor;
             }
 
@@ -447,11 +435,6 @@ public class InterceptorDataImpl impleme
 
                 ownerCreationalContext.addDependent(ownerInstance, (WebBeansInterceptor<Object>)
this.webBeansInterceptor, interceptor);
             }
-            if (logger.wblWillLogDebug())
-            {
-                logger.debug("< " + interceptor);
-            }
-
             return interceptor;
         }
 
@@ -461,19 +444,9 @@ public class InterceptorDataImpl impleme
         if (this.definedInInterceptorClass)
         {
             ctx = ownerCreationalContext.getEjbInterceptor(ownerInstance, this.interceptorClass);
-            if (logger.wblWillLogDebug())
-            {
-                logger.debug("EjbInterceptor Context " + ctx);
-            }
-
             if (ctx == null)
             {
                 interceptor = WebBeansUtil.newInstanceForced(this.interceptorClass);
-                if (logger.wblWillLogDebug())
-                {
-                    logger.debug("EjbInterceptor newInstanceForced  " + interceptor);
-                }
-
                 try
                 {
                     OWBInjector injector = new OWBInjector(webBeansContext);
@@ -494,18 +467,8 @@ public class InterceptorDataImpl impleme
             else
             {
                 interceptor = ctx.getInterceptorInstance();
-                if (logger.wblWillLogDebug())
-                {
-                    logger.debug("EjbInterceptor existing " + interceptor);
-                }
-
             }
         }
-        if (logger.wblWillLogDebug())
-        {
-            logger.debug("< " + interceptor);
-        }
-
         return interceptor;
     }
 



Mime
View raw message