You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/09/04 18:15:30 UTC
svn commit: r1165064 -
/commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletPathMapper.java
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);