svn commit: r757179 - /lenya/branches/BRANCH_2_0_X/src/webapp/lenya/usecase.xmap

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Sun Mar 22 12:52:11 2009
New Revision: 757179

URL: http://svn.apache.org/viewvc?rev=757179&view=rev
Log:
Allow to serve usecases directly from modules, without invoking the usecase framework.

Modified:
    lenya/branches/BRANCH_2_0_X/src/webapp/lenya/usecase.xmap

Modified: lenya/branches/BRANCH_2_0_X/src/webapp/lenya/usecase.xmap
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/webapp/lenya/usecase.xmap?rev=757179&r1=757178&r2=757179&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/webapp/lenya/usecase.xmap (original)
+++ lenya/branches/BRANCH_2_0_X/src/webapp/lenya/usecase.xmap Sun Mar 22 12:52:11 2009
@@ -57,6 +57,21 @@
     </map:pipeline>
  
     <!-- =================================================================== -->
+    <!-- Usecases that are served by modules -->
+    <!-- =================================================================== -->
+    
+    <map:pipeline>
+      <map:match type="usecase" pattern="*.*">
+        <map:select type="resource-exists">
+          <map:when test="fallback://lenya/modules/{1}/sitemap.xmap">
+            <map:mount pass-through="true" uri-prefix="" src="fallback://lenya/modules/{1}/sitemap.xmap"
+              check-reload="yes" reload-method="synchron"/>
+          </map:when>
+        </map:select>
+      </map:match>
+    </map:pipeline>
+    
+    <!-- =================================================================== -->
     <!-- Notification Pipelines -->
     <!-- =================================================================== -->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.