You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@river.apache.org by gt...@apache.org on 2015/08/06 19:56:07 UTC

svn commit: r1694547 - in /river/river-examples/river-examples/trunk: browser/src/main/java/org/apache/river/examples/browser/ hello-api/src/main/java/org/apache/river/examples/hello/api/ hello-client/src/main/java/org/apache/river/examples/hello/clien...

Author: gtrasuk
Date: Thu Aug  6 17:56:07 2015
New Revision: 1694547

URL: http://svn.apache.org/r1694547
Log:
The source code now contains pointers to the main readme file, so that
folks who look at the code first will be encouraged to build and run the 
complete tutorial.


Modified:
    river/river-examples/river-examples/trunk/browser/src/main/java/org/apache/river/examples/browser/Browser.java
    river/river-examples/river-examples/trunk/browser/src/main/java/org/apache/river/examples/browser/ServiceBrowser.java
    river/river-examples/river-examples/trunk/hello-api/src/main/java/org/apache/river/examples/hello/api/Greeter.java
    river/river-examples/river-examples/trunk/hello-client/src/main/java/org/apache/river/examples/hello/client/App.java
    river/river-examples/river-examples/trunk/hello-service/src/main/java/org/apache/river/examples/hello/service/GreeterService.java
    river/river-examples/river-examples/trunk/hello-webapp-client/src/main/java/org/apache/river/examples/hello/webapp/client/ConfigHolder.java
    river/river-examples/river-examples/trunk/hello-webapp-client/src/main/java/org/apache/river/examples/hello/webapp/client/HelloBean.java

Modified: river/river-examples/river-examples/trunk/browser/src/main/java/org/apache/river/examples/browser/Browser.java
URL: http://svn.apache.org/viewvc/river/river-examples/river-examples/trunk/browser/src/main/java/org/apache/river/examples/browser/Browser.java?rev=1694547&r1=1694546&r2=1694547&view=diff
==============================================================================
--- river/river-examples/river-examples/trunk/browser/src/main/java/org/apache/river/examples/browser/Browser.java (original)
+++ river/river-examples/river-examples/trunk/browser/src/main/java/org/apache/river/examples/browser/Browser.java Thu Aug  6 17:56:07 2015
@@ -127,14 +127,18 @@ import net.jini.space.JavaSpace05;
 import net.jini.space.JavaSpace;
 
 /*
+ * (From the original JTSK browser class)
  * This is not great user interface design. It was a quick-and-dirty hack
  * and an experiment in on-the-fly menu construction, and it's still
  * here because we've never had time to do anything better.
  */
 /**
  * Example service browser. See the package documentation for details.
- *
- * @author Sun Microsystems, Inc.
+ * 
+ * Note: This code is part of a comprehensive tutorial - Be sure to have a look
+ * at the 'README.md' file in the root of the parent 'river-examples' project
+ * for instructions on how to build and view the complete tutorial.
+ * 
  */
 public class Browser extends JFrame {
     static final String BROWSER = Browser.class.getPackage().getName();

Modified: river/river-examples/river-examples/trunk/browser/src/main/java/org/apache/river/examples/browser/ServiceBrowser.java
URL: http://svn.apache.org/viewvc/river/river-examples/river-examples/trunk/browser/src/main/java/org/apache/river/examples/browser/ServiceBrowser.java?rev=1694547&r1=1694546&r2=1694547&view=diff
==============================================================================
--- river/river-examples/river-examples/trunk/browser/src/main/java/org/apache/river/examples/browser/ServiceBrowser.java (original)
+++ river/river-examples/river-examples/trunk/browser/src/main/java/org/apache/river/examples/browser/ServiceBrowser.java Thu Aug  6 17:56:07 2015
@@ -43,9 +43,10 @@ import javax.swing.event.PopupMenuEvent;
 /**
  * A browser utility to browse entries in a specified space.
  *
- * @author Sun Microsystems, Inc.
- *
- * @version 0.2 06/04/98
+ * Note: This code is part of a comprehensive tutorial - Be sure to have a look
+ * at the 'README.md' file in the root of the parent 'river-examples' project
+ * for instructions on how to build and view the complete tutorial.
+ * 
  *
  */
 class ServiceBrowser extends JFrame {

Modified: river/river-examples/river-examples/trunk/hello-api/src/main/java/org/apache/river/examples/hello/api/Greeter.java
URL: http://svn.apache.org/viewvc/river/river-examples/river-examples/trunk/hello-api/src/main/java/org/apache/river/examples/hello/api/Greeter.java?rev=1694547&r1=1694546&r2=1694547&view=diff
==============================================================================
--- river/river-examples/river-examples/trunk/hello-api/src/main/java/org/apache/river/examples/hello/api/Greeter.java (original)
+++ river/river-examples/river-examples/trunk/hello-api/src/main/java/org/apache/river/examples/hello/api/Greeter.java Thu Aug  6 17:56:07 2015
@@ -14,7 +14,7 @@
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
+*/
 
 package org.apache.river.examples.hello.api;
 
@@ -27,6 +27,11 @@ import java.rmi.Remote;
  * we could have had a plain interface and then created a proxy that implements that
  * interface while extending Remote.  But in this case, we know it's going to be implemented
  * as a remote service, so it simplifies things if we just extend Remote.
+
+ * Note: This code is part of a comprehensive tutorial - Be sure to have a look
+ * at the 'README.md' file in the root of the parent 'river-examples' project
+ * for instructions on how to build and view the complete tutorial.
+ * 
  */
 public interface Greeter extends Remote {
     /**

Modified: river/river-examples/river-examples/trunk/hello-client/src/main/java/org/apache/river/examples/hello/client/App.java
URL: http://svn.apache.org/viewvc/river/river-examples/river-examples/trunk/hello-client/src/main/java/org/apache/river/examples/hello/client/App.java?rev=1694547&r1=1694546&r2=1694547&view=diff
==============================================================================
--- river/river-examples/river-examples/trunk/hello-client/src/main/java/org/apache/river/examples/hello/client/App.java (original)
+++ river/river-examples/river-examples/trunk/hello-client/src/main/java/org/apache/river/examples/hello/client/App.java Thu Aug  6 17:56:07 2015
@@ -30,7 +30,12 @@ import net.jini.security.ProxyPreparer;
 import org.apache.river.examples.hello.api.Greeter;
 
 /**
- * Hello world!
+ * Hello world using a client to the Greeter service.
+ * 
+ * Note: This code is part of a comprehensive tutorial - Be sure to have a look
+ * at the 'README.md' file in the root of the parent 'river-examples' project
+ * for instructions on how to build and view the complete tutorial.
+ * 
  *
  */
 public class App {

Modified: river/river-examples/river-examples/trunk/hello-service/src/main/java/org/apache/river/examples/hello/service/GreeterService.java
URL: http://svn.apache.org/viewvc/river/river-examples/river-examples/trunk/hello-service/src/main/java/org/apache/river/examples/hello/service/GreeterService.java?rev=1694547&r1=1694546&r2=1694547&view=diff
==============================================================================
--- river/river-examples/river-examples/trunk/hello-service/src/main/java/org/apache/river/examples/hello/service/GreeterService.java (original)
+++ river/river-examples/river-examples/trunk/hello-service/src/main/java/org/apache/river/examples/hello/service/GreeterService.java Thu Aug  6 17:56:07 2015
@@ -35,7 +35,13 @@ import org.apache.river.examples.hello.a
 
 /**
  *
- * @author trasukg
+ * Implementation of the Greeter interface, suitable for starting under the
+ * ServiceStarter framework.
+ * 
+ * Note: This code is part of a comprehensive tutorial - Be sure to have a look
+ * at the 'README.md' file in the root of the parent 'river-examples' project
+ * for instructions on how to build and view the complete tutorial.
+ * 
  */
 public class GreeterService implements Greeter, ServiceIDListener {
 

Modified: river/river-examples/river-examples/trunk/hello-webapp-client/src/main/java/org/apache/river/examples/hello/webapp/client/ConfigHolder.java
URL: http://svn.apache.org/viewvc/river/river-examples/river-examples/trunk/hello-webapp-client/src/main/java/org/apache/river/examples/hello/webapp/client/ConfigHolder.java?rev=1694547&r1=1694546&r2=1694547&view=diff
==============================================================================
--- river/river-examples/river-examples/trunk/hello-webapp-client/src/main/java/org/apache/river/examples/hello/webapp/client/ConfigHolder.java (original)
+++ river/river-examples/river-examples/trunk/hello-webapp-client/src/main/java/org/apache/river/examples/hello/webapp/client/ConfigHolder.java Thu Aug  6 17:56:07 2015
@@ -33,6 +33,12 @@ import net.jini.lookup.ServiceDiscoveryM
  * This class acts as a ServletContextListener to load the configuration on 
  * startup of the application, and then acts as a CDI resource provider to allow
  * automatic injection of the Configuration to any other CDI components.
+ * 
+ * Note: This code is part of a comprehensive tutorial - Be sure to have a look
+ * at the 'README.md' file in the root of the parent 'river-examples' project
+ * for instructions on how to build and view the complete tutorial.
+ * 
+ * 
  */
 @WebListener
 public class ConfigHolder implements ServletContextListener {

Modified: river/river-examples/river-examples/trunk/hello-webapp-client/src/main/java/org/apache/river/examples/hello/webapp/client/HelloBean.java
URL: http://svn.apache.org/viewvc/river/river-examples/river-examples/trunk/hello-webapp-client/src/main/java/org/apache/river/examples/hello/webapp/client/HelloBean.java?rev=1694547&r1=1694546&r2=1694547&view=diff
==============================================================================
--- river/river-examples/river-examples/trunk/hello-webapp-client/src/main/java/org/apache/river/examples/hello/webapp/client/HelloBean.java (original)
+++ river/river-examples/river-examples/trunk/hello-webapp-client/src/main/java/org/apache/river/examples/hello/webapp/client/HelloBean.java Thu Aug  6 17:56:07 2015
@@ -34,6 +34,11 @@ import org.apache.river.examples.hello.a
 
 /**
  * A Managed Bean that uses a Jini Service.
+ * 
+ * Note: This code is part of a comprehensive tutorial - Be sure to have a look
+ * at the 'README.md' file in the root of the parent 'river-examples' project
+ * for instructions on how to build and view the complete tutorial.
+ * 
  */
 @Named
 @RequestScoped