incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r681417 - /incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java
Date Thu, 31 Jul 2008 17:00:49 GMT
Author: cziegeler
Date: Thu Jul 31 10:00:48 2008
New Revision: 681417

URL: http://svn.apache.org/viewvc?rev=681417&view=rev
Log:
SLING-594 : Add new SlingPostProcessor interface which is called just before the save.

Modified:
    incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java

Modified: incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java?rev=681417&r1=681416&r2=681417&view=diff
==============================================================================
--- incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java
(original)
+++ incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java
Thu Jul 31 10:00:48 2008
@@ -61,7 +61,7 @@
  * @scr.property name="sling.servlet.resourceTypes"
  *               value="sling/servlet/default" private="true"
  * @scr.property name="sling.servlet.methods" value="POST" private="true"
- * @scr.reference name="postProcessors" interface="org.apache.sling.servlets.post.SlingPostProcessor"
cardinality="0..n" policy="dynamic"
+ * @scr.reference name="postProcessor" interface="org.apache.sling.servlets.post.SlingPostProcessor"
cardinality="0..n" policy="dynamic"
  */
 public class SlingPostServlet extends SlingAllMethodsServlet {
 
@@ -296,7 +296,7 @@
         this.componentContext = null;
     }
 
-    protected void bindPostProcessors(ServiceReference ref) {
+    protected void bindPostProcessor(ServiceReference ref) {
         synchronized ( this.delayedPostProcessors ) {
             if ( this.componentContext == null ) {
                 this.delayedPostProcessors.add(ref);
@@ -306,7 +306,7 @@
         }
     }
 
-    protected void unbindPostProcessors(ServiceReference ref) {
+    protected void unbindPostProcessor(ServiceReference ref) {
         synchronized ( this.delayedPostProcessors ) {
             this.delayedPostProcessors.remove(ref);
             this.postProcessors.remove(ref);



Mime
View raw message