On 20/05/2012, at 9:42 PM, Adam Murdoch wrote: > On 20/05/2012, at 11:18 PM, Luke Daley wrote: > >> Should we add this as the public typed API for getting the >> ExtensionContainer of decorated objects? > > This doesn't really have much to do with a Project. I'd rather not treat > Project as a bucket of utility methods.
Fair call. > ExtensionAware already exposes this information in the public API. Do we > really need a static method to wrap a cast for you? I think so, just for error reporting. An exception saying that the object is not ExtensionAware would be better than a ClassCastException. We've got the same problem for IConventionAware (when it goes public) & DynamicObject if that's going to be public at some point. -- Luke Daley Principal Engineer, Gradleware http://gradleware.com
