Interface ContainerInstantiator

    • Method Detail

      • newInstance

        <T> T newInstance​(java.lang.Class<T> cls,
                          ContainerContext context)
        Creates a new instance of a container class and inject it.
        Type Parameters:
        T - type of the container
        Parameters:
        cls - class of the object to create
        context - parent content for the newly created container
        Returns:
        new instance of the container class
        See Also:
        FluentInjectControl.inject(Object)