[jboss-svn-commits] JBL Code SVN: r35006 - labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Sep 4 15:56:24 EDT 2010


Author: mark.little at jboss.com
Date: 2010-09-04 15:56:24 -0400 (Sat, 04 Sep 2010)
New Revision: 35006

Modified:
   labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/ORBManager.java
Log:
https://jira.jboss.org/browse/JBTM-784

Modified: labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/ORBManager.java
===================================================================
--- labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/ORBManager.java	2010-09-04 19:56:03 UTC (rev 35005)
+++ labs/jbosstm/trunk/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/ORBManager.java	2010-09-04 19:56:24 UTC (rev 35006)
@@ -36,95 +36,91 @@
 import com.arjuna.ats.jts.logging.*;
 
 /**
- * Manage the default ORB and POA used by the transaction service for
- * the non-recoverable CORBA objects it creates.
+ * Manage the default ORB and POA used by the transaction service for the
+ * non-recoverable CORBA objects it creates.
  */
 
-// TODO error checking
-
 public class ORBManager
 {
     public static final com.arjuna.orbportability.ORB getORB ()
     {
-	if (isInitialised() )
-	    {
-		return getTheORB();
-	    }
-	else
-	    {
+        if (isInitialised())
+        {
+            return getTheORB();
+        }
+        else
+        {
             jtsLogger.i18NLogger.fatal_ORBManager();
-		throw new com.arjuna.ats.arjuna.exceptions.FatalError();
-	    }
+            throw new com.arjuna.ats.arjuna.exceptions.FatalError();
+        }
     }
 
-    
-    private static final com.arjuna.orbportability.ORB getTheORB () 
+    private static final com.arjuna.orbportability.ORB getTheORB ()
     {
-	if (_theOrb == null)
-	    _theOrb = ORB.getInstance(ORB_NAME);
-	
-	return _theOrb;
+        if (_theOrb == null)
+            _theOrb = ORB.getInstance(ORB_NAME);
+
+        return _theOrb;
     }
-    
+
     public static final boolean setORB (com.arjuna.orbportability.ORB theOrb)
     {
-	if (_theOrb == null)
-	{
-	    _theOrb = theOrb;
-	    
-	    return true;
-	}
-	
-	return false;
+        if (_theOrb == null)
+        {
+            _theOrb = theOrb;
+
+            return true;
+        }
+
+        return false;
     }
 
     public static final com.arjuna.orbportability.OA getPOA ()
     {
-	if (isInitialised() )
-	    {
-		return getThePOA();
-	    }
-	else
-	    {
+        if (isInitialised())
+        {
+            return getThePOA();
+        }
+        else
+        {
             jtsLogger.i18NLogger.fatal_ORBManager();
-		throw new com.arjuna.ats.arjuna.exceptions.FatalError();
-	    }
+            throw new com.arjuna.ats.arjuna.exceptions.FatalError();
+        }
     }
 
     private static final com.arjuna.orbportability.OA getThePOA ()
     {
-	if (_thePoa == null)
-	    _thePoa = RootOA.getRootOA(_theOrb);
-	
-	return _thePoa;
+        if (_thePoa == null)
+            _thePoa = RootOA.getRootOA(_theOrb);
+
+        return _thePoa;
     }
 
     public static final boolean setPOA (com.arjuna.orbportability.OA thePoa)
     {
-	if (_thePoa == null)
-	{
-	    _thePoa = thePoa;
-	    
-	    return true;
-	}
-	
-	return false;
+        if (_thePoa == null)
+        {
+            _thePoa = thePoa;
+
+            return true;
+        }
+
+        return false;
     }
 
     public static final com.arjuna.orbportability.Services getServices ()
     {
-	return new com.arjuna.orbportability.Services(_theOrb);
+        return new com.arjuna.orbportability.Services(_theOrb);
     }
 
-    public static final boolean isInitialised()
+    public static final boolean isInitialised ()
     {
-        return( _theOrb != null || _thePoa != null );
+        return (_theOrb != null || _thePoa != null);
     }
 
     private static com.arjuna.orbportability.ORB _theOrb = null;
-    private static com.arjuna.orbportability.OA  _thePoa = null;
 
-    private static final String ORB_NAME = "TransactionORB";
-    private static final String POA_NAME = "TransactionPOA";
+    private static com.arjuna.orbportability.OA _thePoa = null;
 
+    private static final String ORB_NAME = "TransactionORB";
 }



More information about the jboss-svn-commits mailing list