Author: simonetripodi
Date: Sun Sep 4 14:45:49 2011
New Revision: 1165038
URL: http://svn.apache.org/viewvc?rev=1165038&view=rev
Log:
Added missing Context generic type (PathInfoMapper is a Command)
Modified:
commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/PathInfoMapper.java
Modified:
commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/PathInfoMapper.java
URL:
http://svn.apache.org/viewvc/commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/PathInfoMapper.java?rev=1165038&r1=1165037&r2=1165038&view=diff
==============================================================================
---
commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/PathInfoMapper.java
(original)
+++
commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/PathInfoMapper.java
Sun Sep 4 14:45:49 2011
@@ -33,10 +33,11 @@ import org.apache.commons.chain.generic.
* an environment, a request for the context-relative URI "/execute/foo"
* would cause the "/foo" command to be loaded and executed.</p>
*
+ * @param <C> Type of the context associated with this command
* @author Craig R. McClanahan
*/
-public class PathInfoMapper extends LookupCommand implements Command {
+public class PathInfoMapper<C extends Context> extends LookupCommand<C>
implements Command<C> {
// ------------------------------------------------------ Instance
Variables
@@ -117,7 +118,7 @@ public class PathInfoMapper extends Look
*
* @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);