[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...
Gavin King
gavin.king at jboss.com
Sun Feb 4 23:49:04 EST 2007
User: gavin
Date: 07/02/04 23:49:04
Modified: src/main/org/jboss/seam Component.java
Log:
let the log field be static
Revision Changes Path
1.229 +7 -1 jboss-seam/src/main/org/jboss/seam/Component.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Component.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
retrieving revision 1.228
retrieving revision 1.229
diff -u -b -r1.228 -r1.229
--- Component.java 4 Feb 2007 01:13:18 -0000 1.228
+++ Component.java 5 Feb 2007 04:49:04 -0000 1.229
@@ -33,6 +33,7 @@
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Arrays;
@@ -123,7 +124,7 @@
*
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
* @author Gavin King
- * @version $Revision: 1.228 $
+ * @version $Revision: 1.229 $
*/
@Scope(ScopeType.APPLICATION)
@SuppressWarnings("deprecation")
@@ -581,6 +582,11 @@
{
logInstance = org.jboss.seam.log.Logging.getLog(category);
}
+ if ( Modifier.isStatic( field.getModifiers() ) )
+ {
+ Reflections.setAndWrap(field, null, logInstance);
+ logInstance = null;
+ }
}
for ( Annotation ann: field.getAnnotations() )
{
More information about the jboss-cvs-commits
mailing list