dion 2004/08/22 20:21:13 Modified: jexl/xdocs/reference examples.xml Log: A few more details on custom context Revision Changes Path 1.7 +12 -0 jakarta-commons/jexl/xdocs/reference/examples.xml Index: examples.xml =================================================================== RCS file: /home/cvs/jakarta-commons/jexl/xdocs/reference/examples.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- examples.xml 23 Aug 2004 02:57:54 -0000 1.6 +++ examples.xml 23 Aug 2004 03:21:13 -0000 1.7 @@ -76,6 +76,18 @@ </source> </section> <section name="Custom Contexts"> + <p> + Often you have the objects and values that are needed in the context available + elsewhere, and instead of creating the default context and populating it + manually in the code, it may be simpler to create a context implementation of your + own. + </p> + <p> + The <a href="http://jakarta.apache.org/commons/jexl/apidocs/org/apache/commons/jexl/JexlContext.html">JexlContext</a> + interface is very simple with only two methods, one to get the variables of the + context as a <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html">Map</a> and + another to set the variables of the context from a Map. + </p> </section> <section name="Custom Resolvers"> </section>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]