I just found out that you can inject the BeanContainer
.
"Any bean may obtain an instance of BeanContainer by injecting it."
From there I can just call BeanContainer.createInstance()
and use the Instance<Object>
obtained to create my objects.