In some cases, one may want to encode the element type in the name, as it's
effectively done for repositories:
repositories {
maven { ... }
ivy { ... }
maven { ... }
}
Other than that, I think that 3. is a good start. To avoid boilerplate code,
I'd fall back to 1. if the type is a class type and no factory is
registered.
Cheers,
Peter
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Polymorphic-mutable-domain-object-containers-tp5710689p5710690.html
Sent from the gradle-dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email