Interface BackendInfoFactory

All Known Implementing Classes:
DefaultBackendInfoFactory

public interface BackendInfoFactory
The backend info factory.
Author:
harald
  • Method Details

    • getInstance

      static BackendInfoFactory getInstance()
      The singleton.
      Returns:
      the singleton
    • create

      BackendInfo create(Backend backend)
      Creates a backend info from a backend.
      The info cannot be used to connect.
      Parameters:
      backend - the backend
      Returns:
      the backend info
    • create

      BackendInfo create(String backendName)
      Creates a backend info from a backend name.
      The info cannot be used to connect.
      Parameters:
      backendName - the backend name
      Returns:
      the backend info
    • create

      BackendInfo create(String url, String user, char[] password, String[] schemas)
      Creates a backend info.
      This info is able to create a connection.
      Parameters:
      url - the backend url
      user - the username
      password - the password
      schemas - the optional schemas, null if no schema check
      Returns:
      the backend info
    • create

      BackendInfo create(BackendInfo backendInfo, String user, char[] password)
      Creates a backend info from another one with a different user and password.
      Parameters:
      backendInfo - the original backend info
      user - the username
      password - the password
      Returns:
      the backend info
    • create

      BackendInfo create(EncryptedProperties backendProperties)
      Creates a backend info from backend properties.
      The info is able to create a connection.
      Parameters:
      backendProperties - the properties
      Returns:
      the backend info