avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/property/src/xdocs/images build.gif code.gif design.gif update.gif
Date Sun, 07 Apr 2002 04:05:29 GMT
donaldp     02/04/06 20:05:29

  Modified:    util/src/xdocs index.xml
  Removed:     property .cvsignore BUILDING.txt README.txt
                        ant.properties.sample build.bat build.sh build.xml
                        project.properties
               property/examples README.txt
               property/src/conf MANIFEST.MF
               property/src/xdocs book.xml index.xml property.uris
               property/src/xdocs/dtd changes-v10.dtd characters.ent
                        document-v10.dtd faq-v10.dtd specification-v10.dtd
                        todo-v10.dtd
               property/src/xdocs/images build.gif code.gif design.gif
                        update.gif
  Log:
  Move property docs into utils package.
  
  Revision  Changes    Path
  1.4       +26 -1     jakarta-avalon-excalibur/util/src/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/util/src/xdocs/index.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- index.xml	5 Apr 2002 08:21:05 -0000	1.3
  +++ index.xml	7 Apr 2002 04:05:28 -0000	1.4
  @@ -13,13 +13,38 @@
           <s1 title="Introduction">
               <p>
               This project contains some utilities used by other Excalibur classes.
  +            See below for a description of the components.
               </p>
           </s1>
  +        <s1 title="PropertyUtils">
  +     <p>
  +       Avalon Excalibur uses the properties package located at
  +       <code>org.apache.avalon.excalibur.properties</code> to
  +       decode resolvable properties.  The Avalon Framework Context
  +       object stores values based on name/value pairs.  If the
  +       value is resolvable, then it is possible to alter the
  +       value based on another value in the Context.
  +     </p>
  +     <p>
  +       For example, you can get a Context value like this:
  +     </p>
  +     <source>
  +     Object val =
  +         PropertyUtil.resolveProperty("component-${parent}", mycontext, false);
  +     </source>
  +     <p>
  +       The PropertyUtil will first lookup the value named "parent" from the context,
  +       and replace "${parent}" with the value of what "parent" was (for our purpose we
  +       will say it was "foo").  Then it will look up the value of "component-foo" from
  +       the Context.  The last parameter if true will not throw an exception if the
  +       resource was not found, and if false will throw an exception.
  +     </p>
  +    </s1>
       </body>
       <footer>
           <legal>
             Copyright (c) @year@ The Jakarta Apache Project All rights reserved.
  -          $Revision: 1.3 $ $Date: 2002/04/05 08:21:05 $
  +          $Revision: 1.4 $ $Date: 2002/04/07 04:05:28 $
           </legal>
       </footer>
   </document>
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message