db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1143439 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/Torque.java
Date Wed, 06 Jul 2011 14:38:27 GMT
Author: tfischer
Date: Wed Jul  6 14:38:27 2011
New Revision: 1143439

URL: http://svn.apache.org/viewvc?rev=1143439&view=rev
Log:
TORQUE-162
make constructor of static Torque object private

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/Torque.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/Torque.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/Torque.java?rev=1143439&r1=1143438&r2=1143439&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/Torque.java (original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/Torque.java Wed
Jul  6 14:38:27 2011
@@ -42,7 +42,7 @@ import org.apache.torque.map.MapBuilder;
  * @author <a href="mailto:kschrader@karmalab.org">Kurt Schrader</a>
  * @version $Id$
  */
-public class Torque
+public final class Torque
 {
     /**
      * The prefix for all configuration keys used by Torque.
@@ -91,11 +91,9 @@ public class Torque
     private static TorqueInstance torqueSingleton = null;
 
     /**
-     * C'tor for usage with the Stratum Lifecycle.
-     *
-     * TODO: Should be made private or protected once Stratum is removed.
+     * Class contains only static methods, thus instantiation makes no sense.
      */
-    public Torque()
+    private Torque()
     {
     }
 
@@ -166,7 +164,7 @@ public class Torque
      * Sets the configuration for Torque and all dependencies.
      *
      * @param conf the Configuration
-     * 
+     *
      * @throws TorqueException if the configuration does not contain
      *         any keys starting with <code>Torque.TORQUE_KEY</code>.
      */



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message