Interface ContainerFactory

  • All Known Implementing Classes:
    DefaultContainerFactory

    public interface ContainerFactory
    Allow instantiating a container by id (e.g. "resin3x").
    • Method Detail

      • isContainerRegistered

        boolean isContainerRegistered​(String containerId,
                                      ContainerType containerType)
        Parameters:
        containerId - the id of the container to check
        containerType - the container type
        Returns:
        true if the specified container and type is already registered or false otherwise
      • getContainerIds

        Map<String,​Set<ContainerType>> getContainerIds()
        Returns:
        the list of container ids that have been registered as Map.
      • createContainer

        Container createContainer​(String containerId,
                                  ContainerType containerType,
                                  Configuration configuration)
        Create a container instance instantiated using the specified configuration.
        Parameters:
        containerId - the name under which the container will be looked up
        containerType - the container's type (local installed, local embedded, remote, etc)
        configuration - the configuration to pass to the container's constructor
        Returns:
        the container whose class name matches the parameter passed