To my knowledge no one is working on this. Forgive me if I am missing the
obvious but what's the advantage of using the Java 1.4 Preferences API?
Cheers, Ceki

At 18:21 14.03.2002 +0000, you wrote:
>Has any one written a Configurator that uses the Java 1.4 Preferences API 
>as a configuration source? And listens to events on the preferences and 
>keeps its self in sync. I am about to start writing one and just thought I 
>should check that it has not been started of done before.
>An example of my suggested format for the configuration in the preferences 
>XML DTD is below:
>Thanks
>Jasper Potts
>------------------------------------------------------------------------
>----
><preferences EXTERNAL_XML_VERSION="1.0">
>   <root type="system">
>       <map />
>       <node name="log4j">
>           <node name="appenders">
>               <node name="A1">
>                   <map>
>                       <entry name="class" 
> value="org.apache.log4j.ConsoleAppender" />
>                       <entry name="Threshold" value="ERROR" />
>                   </map>
>                   <node name="layout">
>                       <map>
>                           <entry name="class" 
> value="org.apache.log4j.PatternLayout" />
>                           <entry name="ConversionPattern" value="%p [%t] 
> %c{2} (%M:%L) - %m%n" />
>                       </map>
>                   </node>
>               </node>
>               <node name="A2">
>                   <map>
>                       <entry name="class" 
> value="org.apache.log4j.FileAppender" />
>                       <entry name="File" value="${user.home}/test" />
>                       <entry name="Append" value="false" />
>                   </map>
>                   <node name="layout">
>                       <map>
>                           <entry name="class" 
> value="org.apache.log4j.PatternLayout" />
>                           <entry name="ConversionPattern" value="%5r %-5p 
> [%t] %c{2} - %m%n" />
>                       </map>
>                   </node>
>               </node>
>           </node>
>           <node name="loggers">
>               <node name="root">
>                   <map>
>                       <entry name="level" value="DEBUG" />
>                       <entry name="appender" value="A1" />
>                   </map>
>               </node>
>               <node name="org.apache.log4j.examples">
>                   <map>
>                       <entry name="level" value="INFO" />
>                       <entry name="appender" value="A2" />
>                   </map>
>               </node>
>           </node>
>       </node>
>   </root>
></preferences>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>

--
Ceki


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

Reply via email to