Hello :wave: Is there a way to create new instance...
# community-support
t
Hello 👋 Is there a way to create new instance of
T
object for
NamedDomainObjectContainer
. Imagine having a task and then using its output to create new object for the
NamedDomainObjectContainer
?
Copy code
// pseudo code
val container: NamedDomainObjectContainer<SomeType>
val myTask: TaskProvider<MyTask>
container.register("name", myTask.flatMap { Mapper.map(it.outFile) as SomeType })
I am working with API that locks everything at execution stage and requires object added to the container on configuration time which is unfortunate as the values derived from API.