Ben Caradoc-Davies ha scritto:
> Andrea,
> 
> have you considered other patterns for capabilities, such as a property 
> container, like Hints, or the GeoAPI UserData map? This would make it 
> easier for users to add new capabilities without changing the Java API. 

That's why I made the capabilities a class and not a interface, it's
extendable by both us and the users without breaking the API.
Given we have to add something I prefer to go and add something that
is auto-complete friendly

> In effect, this would be a more dynamically typed approach, which would 
> be good as it is easier to extend, but bad because different communities 
> can invent different ways of doing the same thing. Your proposal would 
> keep implementations unified.
> 
> Either approach would be an improvement on the present instanceof + 
> try/catch antipattern, so I support this change.

Should I take this as a +1? ;-)

Cheers
Andrea


-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to