cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/documentation/xdocs/userdocs/concepts sitemap.xml
Date Tue, 06 Nov 2001 10:51:04 GMT
cziegeler    01/11/06 02:51:04

  Modified:    documentation/xdocs/userdocs/concepts Tag: cocoon_20_branch
                        sitemap.xml
  Log:
  Removed CodeFactory from docs
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +5 -54     xml-cocoon2/documentation/xdocs/userdocs/concepts/sitemap.xml
  
  Index: sitemap.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/documentation/xdocs/userdocs/concepts/sitemap.xml,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- sitemap.xml	2001/10/25 14:49:03	1.1.2.1
  +++ sitemap.xml	2001/11/06 10:51:04	1.1.2.2
  @@ -287,7 +287,7 @@
     </map:selector>
   
     <map:selector name="browser" 
  -                src="org.apache.cocoon.selection.BrowserSelectorFactory">
  +                src="org.apache.cocoon.selection.BrowserSelector">
       <browser name="explorer" useragent="MSIE"/>
       <browser name="lynx" useragent="Lynx"/>
       <browser name="mozilla5" useragent="Mozilla/5"/>
  @@ -304,15 +304,6 @@
         of selector to use if none is specified in a pipeline.
        </p>
   
  -     <p>
  -      Because the sitemap will be translated and compiled into a Java class at runtime,
a 
  -      <link href="#interface-selector"><code>Selector</code></link>
can specify a class 
  -      implementing <link href="#interface-code-factory"><code>CodeFactory</code></link>
  -      instead of the <link href="#interface-selector"><code>Selector</code></link>
interface.
  -      This class must be capable of returning a Java source code fragment that can be embedded
into a
  -      method corresponding to the <link href="#interface-selector"><code>Selector</code></link>'s
  -      evaluate method.
  -     </p>
       </s3>
   
       <s3 title="Matchers">
  @@ -323,12 +314,12 @@
   <![CDATA[
   <map:matchers default="wildcard">
     <map:matcher name="wildcard" 
  -               src="org.apache.cocoon.matching.WildcardURIMatcherFactory">
  +               src="org.apache.cocoon.matching.WildcardURIMatcher">
      ...
     </map:matcher>
   
     <map:matcher name="regexp" 
  -               src="org.apache.cocoon.matching.RegexpURIMatcherFactory">
  +               src="org.apache.cocoon.matching.RegexpURIMatcher">
      ...
     </map:matcher>
   </map:matchers>
  @@ -340,15 +331,6 @@
         of matcher to use if none is specified in a pipeline.
        </p>
   
  -     <p> 
  -      Because the sitemap will be translated and compiled into a Java class at runtime,
a 
  -      <link href="#interface-matcher"><code>Matcher</code></link>
can specify a class
  -      implementing <link href="#interface-code-factory"><code>CodeFactory</code></link>
  -      instead of the <link href="#interface-matcher"><code>Matcher</code></link>
interface.
  -      This class must be capable of returning a Java source code fragment that can be embedded
into
  -      a method corresponding to the <link href="#interface-matcher"><code>Matcher</code></link>'s
  -      match method.
  -     </p>
       </s3>
   
       <s3 title="Actions">
  @@ -531,12 +513,12 @@
     <map:components>
       <map:matchers default="wildcard">
         <map:matcher name="wildcard"
  -                   src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
  +                   src="org.apache.cocoon.matching.WildcardURIMatcher"/>
       </map:matchers>
   
       <map:selectors default="host">
         <map:selector name="host"
  -                    src="org.apache.cocoon.selection.HostSelectorFactory">
  +                    src="org.apache.cocoon.selection.HostSelector">
           <host name="fee" value="www.foo.com"/>
         </map:selector>
       </map:selectors>
  @@ -814,37 +796,6 @@
        *                    If the return value is null there was no match.
        */
       Map match (String pattern, Map objectModel, Parameters parameters);      
  -}
  -]]>
  -    </source>
  -   </s2>
  -
  -   <anchor id="interface-code-factory"/>
  -   <s2 title="CodeFactory">
  -    <p>
  -     The <code>CodeFactory</code> interface must be implemented by classes
that produce Java source
  -     code representing logic for class methods. The returned source code will be directly
integrated
  -     into a method of the generated sitemap code.
  -     The <code>CodeFactory</code>'s generate method will be called during
  -      sitemap code generation.
  -      A <code>CodeFactory</code> implementation is capable to return the Java
source code of the
  -      <code>evaluate</code> method of a
  -     <link href="#interface-selector"><code>Selector</code></link>
or <link href="#interface-matcher"><code>Matcher</code></link>
  -     object. It gets passed the value of the "test" attribute of <code>&lt;map:when
test=".."&gt;</code>
  -     sections from the sitemap.
  -    </p>
  -
  -    <source>
  -<![CDATA[
  -public interface CodeFactory {
  -    String generateParameterSource (NodeList conf)
  -    throws ConfigurationException;
  -
  -    String generateClassSource (String prefix, String test, NodeList conf)
  -    throws ConfigurationException;
  -
  -    String generateMethodSource (NodeList conf)
  -    throws ConfigurationException;      
   }
   ]]>
       </source>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message