Some more :) It seems a Rule is tied to a single SystemAttribute - what if
a rule wants to check two values?
I have the feeling that we can replace SystemAttribute with a map.

The RuleBuilder interface uses the namespace to define whether this builder
is responsible for creating a rule with that namespace. I think rather than
encoding this in the method, this should be a service property and the
builders should be plain simle OSGi services.

Regards
Carsten


2013/7/29 Carsten Ziegeler <[email protected]>

> Hi,
>
> as the hc tool progresses I think it's time to talk about the API and its
> intend.
>
> I had a brief look at the Java API and I'm a little bit confused.
>
> I asume the RulesEngine is an OSGi service which is entended to run rules
> - wouldn't it be better to give the set of rules to evaluate in the
> evaluation method? Right now, it seems one has to add all available rules
> through this API and can then later on filter during execution.
>
> The SystemAttribute tages an slf4j logger when getting a value which again
> looks strange to me.
>
> What are the various arguments of the RuleBuilder#buildRule method used
> for?
>
> Right now a Rule object also holds an evaluator and an expression. I think
> a rule should just be a data object and the rule (or the expression?)
> should be passed into an evaluator.
>
> Just some starting questions to find out how this API is intended to be
> used.
>
> Thanks
> Carsten
> --
> Carsten Ziegeler
> [email protected]
>



-- 
Carsten Ziegeler
[email protected]

Reply via email to