[jboss-svn-commits] JBL Code SVN: r29466 - labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/agent.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Sep 25 06:38:07 EDT 2009


Author: adinn
Date: 2009-09-25 06:38:07 -0400 (Fri, 25 Sep 2009)
New Revision: 29466

Modified:
   labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/agent/Transformer.java
Log:
allowed setting of System property org.jboss.byteman.quodlibet to enable transformation of java.lang.* classes

Modified: labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/agent/Transformer.java
===================================================================
--- labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/agent/Transformer.java	2009-09-25 10:26:34 UTC (rev 29465)
+++ labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/agent/Transformer.java	2009-09-25 10:38:07 UTC (rev 29466)
@@ -483,6 +483,11 @@
      */
     public static final String DUMP_GENERATED_CLASSES = BYTEMAN_PACKAGE_PREFIX + "dump.generated.classes";
 
+    /**
+     * system property set to true in order to enable transform of java.lang classes
+     */
+    public static final String QUODLIBET = BYTEMAN_PACKAGE_PREFIX + "quodlibet";
+
     /* implementation */
 
     /**
@@ -641,7 +646,7 @@
         return (className.startsWith(COM_ARJUNA_PACKAGE_PREFIX) || className.startsWith(ORG_JBOSS_PACKAGE_PREFIX));
         */
         if (className.startsWith(JAVA_LANG_PACKAGE_PREFIX)) {
-            return false;
+            return quodlibet;
         }
 
         return true;
@@ -686,12 +691,12 @@
     private final static boolean dumpCFG = (dumpCFGPartial || (System.getProperty(DUMP_CFG) != null));
 
     /**
-     *  switch to control verbose output during rule processing
+     *  switch to control debug output during rule processing
      */
     private final static boolean debug = (System.getProperty(DEBUG) != null);
 
     /**
-     *  switch to control verbose output during rule processing
+     *  switch to control whether rules are compiled ot bytecode or not
      */
     private final static boolean compileToBytecode = (System.getProperty(COMPILE_TO_BYTECODE) != null);
 
@@ -705,6 +710,11 @@
      */
     private final static String dumpGeneratedClassesDir;
 
+    /**
+     *  switch to control whether transformations will be applied to java.lang.* classes
+     */
+    private final static boolean quodlibet = (System.getProperty(QUODLIBET) != null);
+
     static {
         String userDir = System.getProperty(DUMP_GENERATED_CLASSES_DIR);
         if (userDir != null) {



More information about the jboss-svn-commits mailing list