rdonkin     2004/05/08 09:00:59

  Modified:    betwixt/src/java/org/apache/commons/betwixt/io/read Tag:
                        REFACTORING-BRANCH_2004-01-13
                        ChainedBeanCreator.java
               betwixt/xdocs/guide Tag: REFACTORING-BRANCH_2004-01-13
                        reading.xml
  Log:
  ChainedBeanCreator implementation of file includes. Submitted by Brian Pugh.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.4.2.2   +6 -5      
jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io/read/ChainedBeanCreator.java
  
  Index: ChainedBeanCreator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/io/read/ChainedBeanCreator.java,v
  retrieving revision 1.4.2.1
  retrieving revision 1.4.2.2
  diff -u -r1.4.2.1 -r1.4.2.2
  --- ChainedBeanCreator.java   27 Apr 2004 20:00:41 -0000      1.4.2.1
  +++ ChainedBeanCreator.java   8 May 2004 16:00:59 -0000       1.4.2.2
  @@ -81,7 +81,8 @@
         * @return the Object created, possibly null
         */
       
  -    // TODO: is element mapping really necessary? 
  +    // TODO: is element mapping really necessary here?
  +    // TODO: what about exception handling? 
       public Object create(
                               ElementMapping elementMapping, 
                               ReadContext context, 
  
  
  
  No                   revision
  No                   revision
  1.3.2.1   +14 -0     jakarta-commons/betwixt/xdocs/guide/reading.xml
  
  Index: reading.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/xdocs/guide/reading.xml,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- reading.xml       24 Aug 2003 16:53:44 -0000      1.3
  +++ reading.xml       8 May 2004 16:00:59 -0000       1.3.2.1
  @@ -294,6 +294,20 @@
   Now you're ready to start reading enums!
           </p>
       </subsection>
  +    
  +        <subsection name='Using Bean Includes'>
  +            <p>
  +<code>IncludeBeanCreator</code> is a <code>ChainedBeanCreator</code> that 
implements a system
  +of 'includes' files. Adding this class to the bean creation chain will load and 
read the file
  +specified by the <code>include-file</code> attribute whenever it is encountered.
  +The file will be loaded as a resource by the current <code>ClassLoader</code> using 
the standard rules.
  +        </p>
  +            <p>
  +A similar effect could be accumplished through the using of xml entity's.
  +There are occasions when this is inconvenient and so it's useful to have an 
alternative
  +available.
  +        </p>
  +    </subsection>
   </section>
   
   </body>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to