avalon-phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: Configuration Validation
Date Sun, 14 Jul 2002 01:46:12 GMT
ooer ... sounds good. Off to have a lookski.

At 04:42 PM 7/13/2002 -0400, you wrote:
>The first pass at configuration validation is in. You can enable it by
>uncommenting out the block in kernel.xml to enable the
>DelegatingConfigurationValidator.
>
>Phoenix will look for a schema-type element in the blockinfo document, and if
>it is found, will attempt to load <block>-schema.xml as the schema. If you
>are using the xdoclet xinfo generation, add
>@phoenix:configuration-schema type="<type>"
>in the javadocs of the configure() method.
>
>Currently the only implemented schema type is 'relax-ng' using the jing
>libraries (http://www.thaiopensource.com/relaxng/jing.html).
>
>The implemented validator (JarvConfigurationValidator) uses jing via the JARV
>interfaces (http://iso-relax.sourceforge.net). JARV is a set of interfaces
>that can be plugged on top of any validation system. There are other
>implemenations available
>(http://iso-relax.sourceforge.net/JARV/JARV.html#download) including one that
>sits on top of Xerces for XML Schema.
>
>The schema-type approach was choosen so a developer can aggregate blocks from
>various sources with schemas in various languages. I choose relax-ng
>initially since it was the very easy to learn.
>
>Currently the validator only returns a true/false value indicating 
>compliance,
>and any messages from the validator are logged. I'm considering adding a
>callback interface to the validator to return messages to the caller for
>their own purposes (I'm thinking towards users entering config info in a GUI
>and getting validation feedback before commiting config changes).
>
>I have also added relax-ng schemas for the cornerstone blocks I use.
>DataSourceSelector, DefaultConnectionManager, DefaultThreadManager and
>SocketStreamPublisher (altrmi).
>-pete
>
>--
>peter royal -> proyal@apache.org
>
>--
>To unsubscribe, 
>e-mail:   <mailto:avalon-phoenix-dev-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:avalon-phoenix-dev-help@jakarta.apache.org>

Cheers,

Peter Donald
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Faced with the choice between changing one's mind,
and proving that there is no need to do so - almost
everyone gets busy on the proof."
              - John Kenneth Galbraith
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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


Mime
View raw message