commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1165064 - /commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletPathMapper.java
Date Sun, 04 Sep 2011 16:15:30 GMT
Author: simonetripodi
Date: Sun Sep  4 16:15:30 2011
New Revision: 1165064

URL: http://svn.apache.org/viewvc?rev=1165064&view=rev
Log:
Command requires the <C extends Context> generic type

Modified:
    commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletPathMapper.java

Modified: commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletPathMapper.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletPathMapper.java?rev=1165064&r1=1165063&r2=1165064&view=diff
==============================================================================
--- commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletPathMapper.java
(original)
+++ commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletPathMapper.java
Sun Sep  4 16:15:30 2011
@@ -33,10 +33,11 @@ import org.apache.commons.chain.generic.
  * an environment, a request for a context relative URI of "/foo.execute"
  * would cause the "/foo.execute" command to be loaded and executed.</p>
  *
+ * @param <C> Type of the context associated with this command
  * @author Craig R. McClanahan
  */
 
-public class ServletPathMapper extends LookupCommand implements Command {
+public class ServletPathMapper<C extends Context> extends LookupCommand<C> implements
Command<C> {
 
 
     // ------------------------------------------------------ Instance Variables
@@ -117,7 +118,7 @@ public class ServletPathMapper extends L
      *
      * @since Chain 1.2
      */
-    protected Catalog getCatalog(Context context) {
+    protected Catalog getCatalog(C context) {
         Catalog catalog = (Catalog) context.get(getCatalogKey());
         if (catalog == null) {
             catalog = super.getCatalog(context);



Mime
View raw message