Interface ConnectionDetailsFactory<S,D extends ConnectionDetails>

Type Parameters:
S - the source type accepted by the factory. Implementations are expected to provide a valid toString.
D - the type of ConnectionDetails produced by the factory
All Known Implementing Classes:
ContainerConnectionDetailsFactory, DockerComposeConnectionDetailsFactory

public interface ConnectionDetailsFactory<S,D extends ConnectionDetails>
A factory to create ConnectionDetails from a given source. Implementations should be registered in META-INF/spring.factories.
Since:
3.1.0
Author:
Moritz Halbritter, Andy Wilkinson, Phillip Webb
  • Method Details

    • getConnectionDetails

      D getConnectionDetails(S source)
      Get the ConnectionDetails from the given source. May return null if no details can be created.
      Parameters:
      source - the source
      Returns:
      the connection details or null