incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r947025 - in /sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample: client/Notes.java server/NotesServiceImpl.java service/NotesService.java
Date Fri, 21 May 2010 14:34:41 GMT
Author: justin
Date: Fri May 21 14:34:41 2010
New Revision: 947025

URL: http://svn.apache.org/viewvc?rev=947025&view=rev
Log:
using RemoteServiceRelativePath as that's a GWT 2.x best practice

Modified:
    sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/client/Notes.java
    sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/server/NotesServiceImpl.java
    sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/service/NotesService.java

Modified: sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/client/Notes.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/client/Notes.java?rev=947025&r1=947024&r2=947025&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/client/Notes.java
(original)
+++ sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/client/Notes.java
Fri May 21 14:34:41 2010
@@ -49,11 +49,6 @@ import com.google.gwt.user.client.ui.Ver
 public class Notes implements EntryPoint {
 
     private static final NotesServiceAsync service = (NotesServiceAsync) GWT.create(NotesService.class);
-    private static final ServiceDefTarget target = (ServiceDefTarget) service;
-
-    {
-        target.setServiceEntryPoint(GWT.getModuleBaseURL() + "notesservice");
-    }
 
     final TextBox inputNoteTitle = new TextBox();
     final TextArea inputNoteText = new TextArea();

Modified: sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/server/NotesServiceImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/server/NotesServiceImpl.java?rev=947025&r1=947024&r2=947025&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/server/NotesServiceImpl.java
(original)
+++ sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/server/NotesServiceImpl.java
Fri May 21 14:34:41 2010
@@ -18,6 +18,13 @@
  */
 package org.apache.sling.extensions.gwt.sample.server;
 
+import java.util.ArrayList;
+
+import javax.jcr.Node;
+import javax.jcr.NodeIterator;
+import javax.jcr.RepositoryException;
+import javax.jcr.Session;
+
 import org.apache.sling.extensions.gwt.sample.service.Note;
 import org.apache.sling.extensions.gwt.sample.service.NotesService;
 import org.apache.sling.extensions.gwt.user.server.rpc.SlingRemoteServiceServlet;
@@ -26,12 +33,6 @@ import org.osgi.service.component.Compon
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import javax.jcr.Node;
-import javax.jcr.NodeIterator;
-import javax.jcr.RepositoryException;
-import javax.jcr.Session;
-import java.util.ArrayList;
-
 /**
  * This class implements a servlet-based RPC remote service for handling RPC calls from the
GWT client application.
  * <p/>

Modified: sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/service/NotesService.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/service/NotesService.java?rev=947025&r1=947024&r2=947025&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/service/NotesService.java
(original)
+++ sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/service/NotesService.java
Fri May 21 14:34:41 2010
@@ -19,6 +19,7 @@
 package org.apache.sling.extensions.gwt.sample.service;
 
 import com.google.gwt.user.client.rpc.RemoteService;
+import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
 
 import java.util.ArrayList;
 
@@ -27,6 +28,7 @@ import java.util.ArrayList;
  * <p/>
  * It defines the API for creating, deleting and retrieving notes.
  */
+@RemoteServiceRelativePath("notesservice")
 public interface NotesService extends RemoteService {
 
     /**



Mime
View raw message