[jboss-svn-commits] JBL Code SVN: r24166 - labs/jbosstm/workspace/adinn/orchestration/src/org/jboss/jbossts/orchestration/agent.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Dec 1 05:59:38 EST 2008
Author: adinn
Date: 2008-12-01 05:59:38 -0500 (Mon, 01 Dec 2008)
New Revision: 24166
Modified:
labs/jbosstm/workspace/adinn/orchestration/src/org/jboss/jbossts/orchestration/agent/Transformer.java
Log:
allowed transfomer to insert rules in any code other than java.lang classes -- it used to only allow rules to be added to org.jboss or com.arjuna code
Modified: labs/jbosstm/workspace/adinn/orchestration/src/org/jboss/jbossts/orchestration/agent/Transformer.java
===================================================================
--- labs/jbosstm/workspace/adinn/orchestration/src/org/jboss/jbossts/orchestration/agent/Transformer.java 2008-12-01 10:52:29 UTC (rev 24165)
+++ labs/jbosstm/workspace/adinn/orchestration/src/org/jboss/jbossts/orchestration/agent/Transformer.java 2008-12-01 10:59:38 UTC (rev 24166)
@@ -283,6 +283,11 @@
/**
* prefix for org.jboss package
*/
+ private static final String JAVA_LANG_PACKAGE_PREFIX = "java.lang.";
+
+ /**
+ * prefix for org.jboss package
+ */
private static final String ORG_JBOSS_PACKAGE_PREFIX = "org.jboss.";
/**
@@ -379,7 +384,15 @@
*/
private boolean isTransformable(String className)
{
+ /*
+ * ok, we are now going to allow any code to be transformed so long as it is not in the java.lang package
return (className.startsWith(COM_ARJUNA_PACKAGE_PREFIX) || className.startsWith(ORG_JBOSS_PACKAGE_PREFIX));
+ */
+ if (className.startsWith(JAVA_LANG_PACKAGE_PREFIX)) {
+ return false;
+ }
+
+ return true;
}
/**
* the instrumentation interface to the JVM
More information about the jboss-svn-commits
mailing list