What's the difference between PolymorphicDomainObj...
# community-support
p
What's the difference between PolymorphicDomainObjectContainer and ExtensiblePolymorphicDomainObjectContainer? ObjectFactory.polymorphicDomainObjectContainer returns ExtensiblePolymorphicDomainObjectContainer and you need to register the bindings. There is no public api to get a PolymorphicDomainObjectContainer. So what's the point of PolymorphicDomainObjectContainer at all?
t
PolymorphicDomainObjectContainer would be the type in your public API if you don't want to allow consumers to call registerBinding/registerFactory. Also, TaskContainer is a PolymorphicDomainObjectContainer but not an ExtensiblePolymorphicDomainObjectContainer.
p
Thank you, that makes totally sense! Nice, now I finally understand the concept 😅
😅 1