Hi Bertrand, 2012/5/9 Bertrand Delacretaz <[email protected]>: > On Wed, May 9, 2012 at 12:39 AM, Fabian Christ > <[email protected]> wrote: >> 2012/5/9 Bertrand Delacretaz <[email protected]>: >>>... >>> interface Category { >>> String getId(); >>> String getLabel(); >>> Category getParent(); >>> } >> >> So for each type of enhancement you would have an interface - is this >> the idea?... > > Yes, so that a user can say "I'd like to add Categories to this > content" or "I'm looking for Entities in my content", etc.
I see. I am wondering how often we would have to change the API with this approach. The nice thing of having the data represented independent of the API is that we can change the data schema without changing the API. Now with API classes for categories, persons, etc. wouldn't it mean that we have to change the API if someone wants to add a new type of enhancement? But this would be contradicting to our flexible enhancement architecture where we do not know what type of enhancements future engines may produce. Any ideas? -- Fabian http://twitter.com/fctwitt
