For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

polymorphicDomainObjectContainer

Creates a new ExtensiblePolymorphicDomainObjectContainer for managing named objects of the specified type.

The returned container will not have any factories or bindings registered.

Return

The container.

Since

6.1

Parameters

elementType

The type of objects for the container to contain.

<T>

The type of objects for the container to contain.