[jboss-svn-commits] JBL Code SVN: r29960 - in labs/jbosstm/trunk: ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/tools and 4 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Nov 4 12:05:43 EST 2009


Author: jhalliday
Date: 2009-11-04 12:05:42 -0500 (Wed, 04 Nov 2009)
New Revision: 29960

Removed:
   labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/iotest/
   labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/PropertiesTest.java
   labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/SetPropertyTest.java
   labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/SimpleTest.java
   labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/SystemPropertyTest.java
Modified:
   labs/jbosstm/trunk/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/common/arjPropertyManager.java
   labs/jbosstm/trunk/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/tools/OTM.java
   labs/jbosstm/trunk/common/classes/com/arjuna/common/internal/util/propertyservice/BeanPopulator.java
   labs/jbosstm/trunk/common/classes/com/arjuna/common/util/propertyservice/PropertyManagerFactory.java
Log:
Reduce usage of soon-to-be-killed PropertyManager. JBTM-628


Modified: labs/jbosstm/trunk/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/common/arjPropertyManager.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/common/arjPropertyManager.java	2009-11-04 16:05:05 UTC (rev 29959)
+++ labs/jbosstm/trunk/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/common/arjPropertyManager.java	2009-11-04 17:05:42 UTC (rev 29960)
@@ -31,12 +31,8 @@
 
 package com.arjuna.ats.arjuna.common;
 
-import com.arjuna.common.util.propertyservice.PropertyManager;
-import com.arjuna.common.util.propertyservice.PropertyManagerFactory;
 import com.arjuna.common.internal.util.propertyservice.BeanPopulator;
 
-import java.util.concurrent.atomic.AtomicBoolean;
-
 /**
  * Property manager wrapper for the Arjuna module.
  *
@@ -44,16 +40,6 @@
  */
 public class arjPropertyManager
 {
-    /**
-     * @deprecated use environment beans instead.
-     * @return
-     */
-    @Deprecated
-    public static PropertyManager getPropertyManager()
-    {
-        return PropertyManagerFactory.getPropertyManagerForModule("arjuna", Environment.PROPERTIES_FILE);
-    }
-
     public static CoreEnvironmentBean getCoreEnvironmentBean()
     {
         return BeanPopulator.getSingletonInstance(CoreEnvironmentBean.class);

Modified: labs/jbosstm/trunk/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/tools/OTM.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/tools/OTM.java	2009-11-04 16:05:05 UTC (rev 29959)
+++ labs/jbosstm/trunk/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/tools/OTM.java	2009-11-04 17:05:42 UTC (rev 29960)
@@ -31,8 +31,7 @@
 
 package com.arjuna.ats.arjuna.tools;
 
-import com.arjuna.ats.arjuna.coordinator.*;
-import com.arjuna.common.util.propertyservice.PropertyManager;
+import com.arjuna.common.util.propertyservice.PropertyManagerFactory;
 import com.arjuna.ats.arjuna.common.*;
 import com.arjuna.ats.arjuna.objectstore.ObjectStore;
 import com.arjuna.ats.arjuna.state.*;
@@ -40,14 +39,12 @@
 
 import javax.swing.*;
 import javax.swing.tree.*;
-import javax.swing.event.*;
 import java.awt.*;
 import java.awt.event.*;
 import java.util.Vector;
 import java.util.Enumeration;
 import java.net.InetAddress;
 
-import java.io.IOException;
 import java.net.UnknownHostException;
 import java.lang.NumberFormatException;
 
@@ -824,7 +821,7 @@
     public static void main (String[] args)
     {
         Uid u = new Uid();
-        String timeout = arjPropertyManager.getPropertyManager().getProperty(
+        String timeout = PropertyManagerFactory.getDefaultProperties().getProperty(
                 pollingTimeout);
 
         if (timeout != null)

Modified: labs/jbosstm/trunk/common/classes/com/arjuna/common/internal/util/propertyservice/BeanPopulator.java
===================================================================
--- labs/jbosstm/trunk/common/classes/com/arjuna/common/internal/util/propertyservice/BeanPopulator.java	2009-11-04 16:05:05 UTC (rev 29959)
+++ labs/jbosstm/trunk/common/classes/com/arjuna/common/internal/util/propertyservice/BeanPopulator.java	2009-11-04 17:05:42 UTC (rev 29960)
@@ -26,7 +26,6 @@
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
 
-import com.arjuna.common.util.propertyservice.PropertyManager;
 import com.arjuna.common.util.propertyservice.PropertyManagerFactory;
 
 /**
@@ -47,9 +46,8 @@
             T bean = null;
             try {
                 bean = beanClass.newInstance();
-                // TODO: pick and document new standard for global config file name property. For now use 'common' module value.
-                PropertyManager propertyManager = PropertyManagerFactory.getPropertyManagerForModule("common", "com.arjuna.ats.arjuna.common.propertiesFile");
-                configureFromProperties(bean, propertyManager.getProperties());
+                Properties properties = PropertyManagerFactory.getDefaultProperties();
+                configureFromProperties(bean, properties);
             } catch (Exception e) {
                 throw new RuntimeException(e);
             }

Modified: labs/jbosstm/trunk/common/classes/com/arjuna/common/util/propertyservice/PropertyManagerFactory.java
===================================================================
--- labs/jbosstm/trunk/common/classes/com/arjuna/common/util/propertyservice/PropertyManagerFactory.java	2009-11-04 16:05:05 UTC (rev 29959)
+++ labs/jbosstm/trunk/common/classes/com/arjuna/common/util/propertyservice/PropertyManagerFactory.java	2009-11-04 17:05:42 UTC (rev 29960)
@@ -28,7 +28,6 @@
 import java.util.Properties;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
-import java.io.InputStream;
 import java.io.IOException;
 import java.io.File;
 import java.io.FileNotFoundException;
@@ -46,41 +45,46 @@
  */
 
 /**
- * This is the property manager factory used to produce property managers.
+ * This is the property manager factory used to produce properties.
  *
  * @author Richard A. Begg (richard.begg at arjuna.com)
  */
 public class PropertyManagerFactory
 {
-    private static ConcurrentMap<String, PropertyManager> propertyManagersByModuleName = new ConcurrentHashMap<String, PropertyManager>();
-    private static ConcurrentMap<String, PropertyManager> propertyManagersByCanonicalFileName = new ConcurrentHashMap<String, PropertyManager>();
+    private static ConcurrentMap<String, Properties> propertiesByModuleName = new ConcurrentHashMap<String, Properties>();
+    private static ConcurrentMap<String, Properties> propertiesByCanonicalFileName = new ConcurrentHashMap<String, Properties>();
 
+    public static Properties getDefaultProperties() {
+        // TODO: pick and document new standard for global config file name property. For now use 'common' module value.        
+       return getPropertiesForModule("common", "com.arjuna.ats.arjuna.common.propertiesFile");
+    }
+
     /**
-     * Return a PropertyManager for the given module. If no such PropertyManager exists, create one using
+     * Return a Properties object for the given module. If no such Properties exists, create one using
      * the property file whose name is found by resolving the given key property.
      *
      * @param moduleName The symbolic name of the application module e.g. 'arjuna', 'txoj'.
      * @param fileNamePropertyKey The name of the property whose value is the config file name.
-     * @return a PropertyManager.
+     * @return a Properties object.
      */
-    public static PropertyManager getPropertyManagerForModule(String moduleName, String fileNamePropertyKey)
+    private static Properties getPropertiesForModule(String moduleName, String fileNamePropertyKey)
     {
-        // once loaded, Property managers for each module are cached here.
-        // Clients (usually the xxxPropertyManager classes in each app module) should not cache the returned
-        // propertyManager object, so that we can flush config just be clearing this one cache.
-        if(propertyManagersByModuleName.containsKey(moduleName)) {
-            return propertyManagersByModuleName.get(moduleName);
+        // once loaded, Properties for each module are cached here.
+        // Clients (usually BeanPopulator classes in each app module) should not cache the returned
+        // Properties object, so that we can flush config just be clearing this one cache.
+        if(propertiesByModuleName.containsKey(moduleName)) {
+            return propertiesByModuleName.get(moduleName);
         }
 
         // first time we have been asked for this module's properties - try to load them.
-        return createPropertyManagerForModule(moduleName, fileNamePropertyKey);
+        return createPropertiesForModule(moduleName, fileNamePropertyKey);
     }
 
     public static Properties getPropertiesFromFile(String propertiesFileName) {
-        return getPropertyManagerForFile(propertiesFileName, false).getProperties();
+        return getPropertiesFromFile(propertiesFileName, false);
     }
 
-    private static PropertyManager getPropertyManagerForFile(String propertyFileName, boolean withCaching)
+    private static Properties getPropertiesFromFile(String propertyFileName, boolean withCaching)
     {
         String filepath = null;
         try
@@ -112,21 +116,22 @@
         }
 
         // We have a candidate file. Check if we have loaded it already. If so, associate it to the module cache and return it.
-        PropertyManager propertyManager = null;
+        Properties properties = null;
 
         if(withCaching) {
-            propertyManager = propertyManagersByCanonicalFileName.get(filepath);
+            properties = propertiesByCanonicalFileName.get(filepath);
         }
 
         // We have not loaded this file before. Do so now.
-        if(propertyManager == null) {
-            propertyManager = new PropertyManagerImpl(propertyFileName);
+        if(properties == null) {
+            PropertyManager propertyManager = new PropertyManagerImpl(propertyFileName);
             try {
                 propertyManager.load(XMLFilePlugin.class.getName(), filepath);
+                properties = propertyManager.getProperties();
                 if(withCaching) {
-                    PropertyManager existingPropertyManager = propertyManagersByCanonicalFileName.putIfAbsent(filepath, propertyManager);
-                    if(existingPropertyManager != null) {
-                        propertyManager = existingPropertyManager;
+                    Properties existingProperties = propertiesByCanonicalFileName.putIfAbsent(filepath, properties);
+                    if(existingProperties != null) {
+                        properties = existingProperties;
                     }
                 }
             } catch(Exception e) {
@@ -134,14 +139,14 @@
             }
         }
         
-        return propertyManager;
+        return properties;
     }
 
 
-    private static synchronized PropertyManager createPropertyManagerForModule(String moduleName, String fileNamePropertyKey)
+    private static synchronized Properties createPropertiesForModule(String moduleName, String fileNamePropertyKey)
     {
-        if(propertyManagersByModuleName.containsKey(moduleName)) {
-            return propertyManagersByModuleName.get(moduleName);
+        if(propertiesByModuleName.containsKey(moduleName)) {
+            return propertiesByModuleName.get(moduleName);
         }
 
         // This is where the properties loading takes place. The algorithm is as follows:
@@ -163,10 +168,10 @@
             throw new RuntimeException("Unable to resolve property file name for module "+moduleName);
         }
 
-        PropertyManager propertyManager = getPropertyManagerForFile(propertyFileName, true);
+        Properties properties = getPropertiesFromFile(propertyFileName, true);
 
-        propertyManagersByModuleName.put(moduleName, propertyManager);
+        propertiesByModuleName.put(moduleName, properties);
 
-        return propertyManager;
+        return properties;
     }
 }

Deleted: labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/PropertiesTest.java
===================================================================
--- labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/PropertiesTest.java	2009-11-04 16:05:05 UTC (rev 29959)
+++ labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/PropertiesTest.java	2009-11-04 17:05:42 UTC (rev 29960)
@@ -1,79 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors 
- * as indicated by the @author tags. 
- * See the copyright.txt in the distribution for a
- * full listing of individual contributors. 
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A 
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
- * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
- * MA  02110-1301, USA.
- * 
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-package com.arjuna.common.tests.simple;
-
-import com.arjuna.common.util.propertyservice.PropertyManager;
-import com.arjuna.common.util.propertyservice.PropertyManagerFactory;
-
-import java.util.Properties;
-import java.util.Enumeration;
-
-import org.junit.Test;
-import static org.junit.Assert.*;
-
-/*
- * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
- *
- * Arjuna Technologies Ltd.
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: PropertiesTest.java 2342 2006-03-30 13:06:17Z  $
- */
-
-public class PropertiesTest
-{
-    @Test
-	public void propertiesTest()
-	{
-        System.setProperty("property.file.name", "test-product.xml");
-        PropertyManager txojPropertyManager = PropertyManagerFactory.getPropertyManagerForModule("txoj", "property.file.name");
-
-        int count = 0;
-		Properties p = txojPropertyManager.getProperties();
-
-		System.out.println("TXOJ Properties size = "+p.size());
-
-		for (Enumeration e = p.keys();e.hasMoreElements();)
-		{
-			String propertyName = (String)e.nextElement();
-			String propertyValue = p.getProperty(propertyName);
-
-            if(!propertyName.startsWith("com.arjuna.")) {
-                continue;
-            }
-
-			if ( ( propertyName.equals("com.arjuna.ats.arjuna.Test") ) ||
-			     ( propertyName.equals("com.arjuna.ats.txoj.Test") ) )
-			{
-				System.out.println("Found property '"+propertyName+"', value: "+propertyValue);
-				count++;
-			}
-			else
-			{
-                fail("Found unexpected property '"+propertyName+"' failed");
-			}
-		}
-
-        assertEquals(2, count);
-	}
-}

Deleted: labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/SetPropertyTest.java
===================================================================
--- labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/SetPropertyTest.java	2009-11-04 16:05:05 UTC (rev 29959)
+++ labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/SetPropertyTest.java	2009-11-04 17:05:42 UTC (rev 29960)
@@ -1,68 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors 
- * as indicated by the @author tags. 
- * See the copyright.txt in the distribution for a
- * full listing of individual contributors. 
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A 
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
- * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
- * MA  02110-1301, USA.
- * 
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-package com.arjuna.common.tests.simple;
-
-import com.arjuna.common.util.propertyservice.PropertyManager;
-import com.arjuna.common.util.propertyservice.PropertyManagerFactory;
-import com.arjuna.common.internal.util.propertyservice.plugins.io.XMLFilePlugin;
-import org.junit.Test;
-import static org.junit.Assert.*;
-
-/*
- * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
- *
- * Arjuna Technologies Ltd.
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: SetPropertyTest.java 2342 2006-03-30 13:06:17Z  $
- */
-
-public class SetPropertyTest
-{
-    @Test
-	public void setPropertyTest()
-	{
-        System.setProperty("property.file.name", "test-product.xml");
-        PropertyManager arjunaPropertyManager = PropertyManagerFactory.getPropertyManagerForModule("arjuna", "property.file.name");
-        PropertyManager txojPropertyManager = PropertyManagerFactory.getPropertyManagerForModule("arjuna", "property.file.name");
-
-		int count = 0;
-
-		String value = arjunaPropertyManager.getProperty("com.arjuna.ats.arjuna.Test");
-		System.out.println("Value["+(++count)+"] :"+value);
-
-        assertEquals("Test", value);
-
-		arjunaPropertyManager.setProperty("com.arjuna.ats.arjuna.Test", "OverriddenInCode");
-
-		value = txojPropertyManager.getProperty("com.arjuna.ats.arjuna.Test");
-		System.out.println("Value["+(++count)+"] :"+value);
-
-        assertEquals("OverriddenInCode", value);
-
-		value = arjunaPropertyManager.getProperty("com.arjuna.ats.arjuna.Test");
-		System.out.println("Value["+(++count)+"] :"+value);
-
-        assertEquals("OverriddenInCode", value);
-	}
-}

Deleted: labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/SimpleTest.java
===================================================================
--- labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/SimpleTest.java	2009-11-04 16:05:05 UTC (rev 29959)
+++ labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/SimpleTest.java	2009-11-04 17:05:42 UTC (rev 29960)
@@ -1,67 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors 
- * as indicated by the @author tags. 
- * See the copyright.txt in the distribution for a
- * full listing of individual contributors. 
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A 
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
- * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
- * MA  02110-1301, USA.
- * 
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-package com.arjuna.common.tests.simple;
-
-import com.arjuna.common.util.propertyservice.PropertyManager;
-import com.arjuna.common.util.propertyservice.PropertyManagerFactory;
-import com.arjuna.common.internal.util.propertyservice.plugins.io.XMLFilePlugin;
-
-import org.junit.Test;
-import static org.junit.Assert.*;
-
-/*
- * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
- *
- * Arjuna Technologies Ltd.
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: SimpleTest.java 2342 2006-03-30 13:06:17Z  $
- */
-public class SimpleTest
-{
-    @Test
-	public void main()
-	{
-        System.setProperty("property.file.name", "test-product.xml");
-        PropertyManager arjunaPropertyManager = PropertyManagerFactory.getPropertyManagerForModule("arjuna", "property.file.name");
-        PropertyManager txojPropertyManager = PropertyManagerFactory.getPropertyManagerForModule("arjuna", "property.file.name");
-
-
-		int count = 0;
-
-		String value = arjunaPropertyManager.getProperty("com.arjuna.ats.arjuna.Test");
-		System.out.println("Value["+(++count)+"] :"+value);
-
-        assertEquals("Test", value);
-
-		value = txojPropertyManager.getProperty("com.arjuna.ats.arjuna.Test");
-		System.out.println("Value["+(++count)+"] :"+value);
-
-        assertEquals("Test", value);
-
-		value = txojPropertyManager.getProperty("com.arjuna.ats.txoj.Test");
-		System.out.println("Value["+(++count)+"] :"+value);
-
-        assertEquals("Test2", value);
-	}
-}

Deleted: labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/SystemPropertyTest.java
===================================================================
--- labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/SystemPropertyTest.java	2009-11-04 16:05:05 UTC (rev 29959)
+++ labs/jbosstm/trunk/common/tests/com/arjuna/common/tests/simple/SystemPropertyTest.java	2009-11-04 17:05:42 UTC (rev 29960)
@@ -1,69 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors 
- * as indicated by the @author tags. 
- * See the copyright.txt in the distribution for a
- * full listing of individual contributors. 
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A 
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
- * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
- * MA  02110-1301, USA.
- * 
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-package com.arjuna.common.tests.simple;
-
-import com.arjuna.common.util.propertyservice.PropertyManager;
-import com.arjuna.common.util.propertyservice.PropertyManagerFactory;
-import com.arjuna.common.internal.util.propertyservice.plugins.io.XMLFilePlugin;
-import org.junit.Test;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
-
-/*
- * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
- *
- * Arjuna Technologies Ltd.
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: SystemPropertyTest.java 2342 2006-03-30 13:06:17Z  $
- */
-
-public class SystemPropertyTest
-{
-    @Test
-	public void main()
-	{
-        System.setProperty("property.file.name", "test-product.xml");
-        PropertyManager arjunaPropertyManager = PropertyManagerFactory.getPropertyManagerForModule("arjuna", "property.file.name");
-        PropertyManager txojPropertyManager = PropertyManagerFactory.getPropertyManagerForModule("arjuna", "property.file.name");
-
-        System.setProperty("com.arjuna.ats.arjuna.Test", "SysOverride");
-
-		int count = 0;
-
-		String value = arjunaPropertyManager.getProperty("com.arjuna.ats.arjuna.Test");
-		System.out.println("Value["+(++count)+"] :"+value);
-
-        assertEquals("SysOverride", value);
-
-		value = txojPropertyManager.getProperty("com.arjuna.ats.arjuna.Test");
-		System.out.println("Value["+(++count)+"] :"+value);
-
-        assertEquals("SysOverride", value);
-
-		value = txojPropertyManager.getProperty("com.arjuna.ats.txoj.Test");
-		System.out.println("Value["+(++count)+"] :"+value);
-
-        assertEquals("Test2", value);
-	}
-}



More information about the jboss-svn-commits mailing list