cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r930690 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/runtime: CayenneRuntime.java CayenneServerRuntime.java
Date Sun, 04 Apr 2010 13:46:30 GMT
Author: aadamchik
Date: Sun Apr  4 13:46:30 2010
New Revision: 930690

URL: http://svn.apache.org/viewvc?rev=930690&view=rev
Log:
 CAY-1318 Cayenne configuration to support a single DataDomain

* javadocs

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/runtime/CayenneRuntime.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/runtime/CayenneServerRuntime.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/runtime/CayenneRuntime.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/runtime/CayenneRuntime.java?rev=930690&r1=930689&r2=930690&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/runtime/CayenneRuntime.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/runtime/CayenneRuntime.java
Sun Apr  4 13:46:30 2010
@@ -38,7 +38,7 @@ public abstract class CayenneRuntime {
     protected Module[] modules;
 
     /**
-     * Initializes Cayenne runtime with an array of DI modules.
+     * Creates a CayenneRuntime with configuration based on supplied array of DI modules.
      */
     public CayenneRuntime(String name, Module... modules) {
 
@@ -56,9 +56,8 @@ public abstract class CayenneRuntime {
     }
 
     /**
-     * Returns runtime name. By default a configuration file name contains a runtime name
-     * in it, to allow multiple runtimes in a single JVM. E.g. a typical config file name
-     * has the form of "cayenne-<name>.xml".
+     * Returns runtime name. By default a name of Cayenne project XML file contains a
+     * runtime name in it in the form "cayenne-<name>.xml".
      */
     public String getName() {
         return name;

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/runtime/CayenneServerRuntime.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/runtime/CayenneServerRuntime.java?rev=930690&r1=930689&r2=930690&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/runtime/CayenneServerRuntime.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/runtime/CayenneServerRuntime.java
Sun Apr  4 13:46:30 2010
@@ -31,10 +31,22 @@ import org.apache.cayenne.di.Module;
  */
 public class CayenneServerRuntime extends CayenneRuntime {
 
+    /**
+     * Creates a server runtime object based on XML configuration file called
+     * "cayenne-<name>.xml" and configured the runtime with a standard set of services
+     * contained in {@link CayenneServerModule}.
+     */
     public CayenneServerRuntime(String name) {
         super(name, new CayenneServerModule(name));
     }
 
+    /**
+     * Creates a server runtime object based on a set of custom DI modules. When
+     * implementing custom modules, refer to {@link CayenneServerModule} for the minimal
+     * set of services required by Cayenne. The easiest way to do it is to pass
+     * {@link CayenneServerModule} or its subclass as one of the modules to this
+     * constructor.
+     */
     public CayenneServerRuntime(String name, Module... modules) {
         super(name, modules);
     }



Mime
View raw message