hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johan Lindquist" <jo...@kawoo.co.uk>
Subject Re: Descriptor validation
Date Mon, 02 May 2005 14:10:42 GMT
You can use the "StrictErrorHandler" when creating your servvice (as a  
property of the builder factory parameters in the hivemodule for your  
service).  This willt thrown an exception instead of simply logging the  
error.

Cheers,

johan

On Mon, 02 May 2005 15:13:26 +0200, Igor Laberov <igorl@qlusters.com>  
wrote:

> Is it possible make validation programatically, like calling validate()
> function and/or throw an (optional) exception on processModule() /
> getService()?
> Should I open JIRA on this request?
>
> On Mon, 2005-05-02 at 15:08, Johan Lindquist wrote:
>> Igor, hivemind should already be reporting errors like the ones you are
>> describing - down to the line in the XML that contains the bad element  
>> ...
>>
>> Look in your logs for something like this:
>>
>> org.apache.hivemind.ApplicationRuntimeException: Class test.XYZ does not
>> contain a property named 'foo'.
>>
>> If not, it is probably a bug and if you wouldn't mind raising an issue  
>> in
>> the jira about so someone will have a look .
>>
>> Johan
>>
>> On Mon, 02 May 2005 13:16:10 +0200, Igor Laberov <igorl@qlusters.com>
>> wrote:
>>
>> > Hi all,
>> > Is it possible to perform validation of defined descriptor?
>> > Here some problematic flows:
>> > 1) At registry construct time: References to another modules are wrong
>> > 2) At service construction time: Service implementation class doesn't
>> > have setter method according to declared property in <set-object>, for
>> > example.
>> >
>> > Thank you,
>> > Igor Laberov
>> > Qlusters, Inc.
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>> >
>> >
>>
>>
>>
>> --
>> you too?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>



-- 
you too?

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message