|Sapphire 0.4 : FactsService [message #691643]
||Fri, 01 July 2011 22:50
| Konstantin Komissarchik
Registered: July 2009
This is the first in what I hope to be a series of posts highlighting new features in the upcoming Sapphire 0.4 release.|
When a property is described to a user in documentation one does it with a series of short statements that define its semantics, such as "must be specified" or "maximum value is 100". When a property is described to Sapphire one does it with a series of annotations, such as @Required or @NumericRange. This duplicate specification is a maintenance problem.
A FactsService provides a means to dynamically derive statements about property's semantics based on property's metadata. The derived facts can then be presented to the user as part of documentation, property editor information popup and in other relevant places.
A single facts service can produce multiple facts and multiple facts services can be active concurrently for a given property. FactsAggregationServices provides an easier way to consume all facts.
For more details see my blog post or Sapphire developer guide in the 0.4 code line.
Powered by FUDForum
. Page generated in 0.01813 seconds