Author: cziegeler
Date: Fri Jul  9 12:25:54 2010
New Revision: 962503

URL: http://svn.apache.org/viewvc?rev=962503&view=rev
Log:
Just some cosmetics

Modified:
    
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/SlingConstants.java
    
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/request/SlingRequestEvent.java
    
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/request/SlingRequestListener.java
    sling/trunk/maven/archetypes/launchpad-standalone/   (props changed)
    sling/trunk/maven/archetypes/launchpad-webapp/   (props changed)

Modified: 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/SlingConstants.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/SlingConstants.java?rev=962503&r1=962502&r2=962503&view=diff
==============================================================================
--- 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/SlingConstants.java 
(original)
+++ 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/SlingConstants.java 
Fri Jul  9 12:25:54 2010
@@ -307,8 +307,8 @@ public class SlingConstants {
     public static final String PROPERTY_PATH = "path";
 
     /**
-     * The name of the event property holding the userid.
-     * @since 2.0.9
+     * The name of the event property holding the userid. This property is 
optional.
+     * @since 2.1.0
      */
     public static final String PROPERTY_USERID = "userid";
 

Modified: 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/request/SlingRequestEvent.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/request/SlingRequestEvent.java?rev=962503&r1=962502&r2=962503&view=diff
==============================================================================
--- 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/request/SlingRequestEvent.java
 (original)
+++ 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/request/SlingRequestEvent.java
 Fri Jul  9 12:25:54 2010
@@ -25,51 +25,49 @@ import javax.servlet.ServletRequest;
 /**
  * represents an event published by the Sling engine while
  * dispatching a request.
- *  
+ *
  * @see org.apache.sling.api.request.SlingRequestListener
+ * @since 2.1.0
 */
 public class SlingRequestEvent {
-       private ServletContext sc;
-       private ServletRequest request;
-       private EventType type; 
-       
+
+       private final ServletContext sc;
+       private final ServletRequest request;
+       private final EventType type;
+
        /**
-        * type of the event  
+        * type of the event
         */
        public enum EventType { EVENT_INIT, EVENT_DESTROY };
-       
-       public SlingRequestEvent (ServletContext sc, ServletRequest request, 
EventType type )
-       {
+
+       public SlingRequestEvent (ServletContext sc, ServletRequest request, 
EventType type ) {
                this.sc = sc;
                this.request = request;
                this.type = type;
        }
-       
+
        /**
         * Gets the actual servlet context object as <code>ServletContext</code>
-        * @return
+        * @return the actual servlet context.
         */
-       public ServletContext getServletContext()
-       {
+       public ServletContext getServletContext() {
                return sc;
        }
-       
+
        /**
         * Gets the actual request object as <code>ServletRequest</code>
         * @return the actual request object as <code>ServletRequest</code>
         */
-       public ServletRequest getServletRequest()
-       {
+       public ServletRequest getServletRequest() {
                return request;
        }
-       
+
        /**
         * get the type of the event, eg. EVENT_INIT or EVENT_DESTROY
-        * @return the type of the event as <code>EventType</code>, 
+        * @return the type of the event as <code>EventType</code>,
         * eg. EVENT_INIT or EVENT_DESTROY
         */
-       public EventType getType ()
-       {
+       public EventType getType () {
                return type;
        }
 }

Modified: 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/request/SlingRequestListener.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/request/SlingRequestListener.java?rev=962503&r1=962502&r2=962503&view=diff
==============================================================================
--- 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/request/SlingRequestListener.java
 (original)
+++ 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/request/SlingRequestListener.java
 Fri Jul  9 12:25:54 2010
@@ -20,24 +20,24 @@
 package org.apache.sling.api.request;
 
 /**
- * Implementations of this service interface receive notifications about 
- * changes to Sling request of the Sling application they are part of. 
- * To receive notification events, the implementation class must be 
- * registered as an OSGi service with the service name 
- * org.apache.sling.api.request.SlingRequestListener. 
+ * Implementations of this service interface receive notifications about
+ * changes to Sling request of the Sling application they are part of.
+ * To receive notification events, the implementation class must be
+ * registered as an OSGi service with the service name
+ * org.apache.sling.api.request.SlingRequestListener.
  */
 public interface SlingRequestListener {
-       
-       static final String SERVICE_NAME = 
"org.apache.sling.api.request.SlingRequestListener"; 
+
+       String SERVICE_NAME = 
"org.apache.sling.api.request.SlingRequestListener";
 
        /**
         * This method is called from the Sling application for every
         * <code>EventType</code> appearing during the dispatching of
-        * a Sling request  
-        * 
+        * a Sling request
+        *
         * @param sre the object representing the event
-        * 
+        *
         * @see org.apache.sling.api.request.SlingRequestEvent.EventType
         */
-       public void onEvent( SlingRequestEvent sre );
+       void onEvent( SlingRequestEvent sre );
 }

Propchange: sling/trunk/maven/archetypes/launchpad-standalone/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Jul  9 12:25:54 2010
@@ -0,0 +1 @@
+target

Propchange: sling/trunk/maven/archetypes/launchpad-webapp/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Jul  9 12:25:54 2010
@@ -0,0 +1 @@
+target


Reply via email to