cziegeler    01/11/06 02:51:22

  Modified:    documentation/xdocs/userdocs/concepts sitemap.xml
  Log:
  Removed CodeFactory from docs
  
  Revision  Changes    Path
  1.3       +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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- sitemap.xml       2001/10/25 14:58:42     1.2
  +++ sitemap.xml       2001/11/06 10:51:22     1.3
  @@ -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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to