Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Sapphire 0.4 : FactsService
Sapphire 0.4 : FactsService [message #691643] Fri, 01 July 2011 18:50
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
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.

- Konstantin
Previous Topic:Java EE Module Configuration Editors Proposal Posted
Next Topic:Sapphire on Eclipse Marketplace
Goto Forum:
  


Current Time: Thu Aug 21 12:16:17 EDT 2014

Powered by FUDForum. Page generated in 0.01503 seconds