Interface ContainerInstantiator

All Known Implementing Classes:
DefaultContainerInstantiator

public interface ContainerInstantiator
Creates container instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    newInstance (Class<T> cls, ContainerContext context)
    Creates a new instance of a container class and inject it.
  • Method Details

    • newInstance

      <T> T newInstance (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: