[skycastle-commits] SF.net SVN: skycastle: [435] trunk/skycastle/modules/core/src/main/java/org /skycastle/core/GameContext.java

  • From: zzorn@xxxxxxxxxxxxxxxxxxxxx
  • To: skycastle-commits@xxxxxxxxxxxxx
  • Date: Thu, 03 Apr 2008 14:13:21 -0700

Revision: 435
          http://skycastle.svn.sourceforge.net/skycastle/?rev=435&view=rev
Author:   zzorn
Date:     2008-04-03 14:13:21 -0700 (Thu, 03 Apr 2008)

Log Message:
-----------
Ideas for how to detect the current context.

Modified Paths:
--------------
    
trunk/skycastle/modules/core/src/main/java/org/skycastle/core/GameContext.java

Modified: 
trunk/skycastle/modules/core/src/main/java/org/skycastle/core/GameContext.java
===================================================================
--- 
trunk/skycastle/modules/core/src/main/java/org/skycastle/core/GameContext.java  
    2008-04-03 21:04:36 UTC (rev 434)
+++ 
trunk/skycastle/modules/core/src/main/java/org/skycastle/core/GameContext.java  
    2008-04-03 21:13:21 UTC (rev 435)
@@ -3,8 +3,9 @@
 import org.skycastle.util.ParameterChecker;
 
 /**
- * A public singleton, that provides the {@link GameObjectContext} for the 
current environment.
- * The {@link GameObjectContext} implementation depends on wether this is the 
client, server, or unit testing environment.
+ * A public singleton, that provides the {@link GameObjectContext} for the 
current environment. The {@link
+ * GameObjectContext} implementation depends on wether this is the client, 
server, or unit testing
+ * environment.
  *
  * @author Hans Haggstrom
  */
@@ -23,7 +24,8 @@
     // Static Methods
 
     /**
-     * @return the {@link GameObjectContext} for the current environment.  
Differs between client, server, and unit test environments.
+     * @return the {@link GameObjectContext} for the current environment.  
Differs between client, server, and
+     *         unit test environments.
      */
     public static GameObjectContext getGameObjectContext()
     {
@@ -50,6 +52,8 @@
     static
     {
         // TODO: Determine environment - how?
+        // IDEA: Maybe see if AppContext.getxxxService return null or not??
+        // As for unit testing, we can look at the call stack and search for 
any caller that implements TestCase?
     }
 
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

Other related posts:

  • » [skycastle-commits] SF.net SVN: skycastle: [435] trunk/skycastle/modules/core/src/main/java/org /skycastle/core/GameContext.java