Interface SessionInfoFactory

All Known Implementing Classes:
DefaultSessionInfoFactory

public interface SessionInfoFactory
Factory for SessionInfo.
Author:
harald
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a session-info from the default properties holding the connection parameters.
    create(String propertiesName)
    Creates a session-info from a property file holding the connection parameters.
    create(String username, char[] password, String propertiesName)
    Creates a session-info from a username, password, and property file holding the connection parameters.
    Creates a session-info from properties.
    The username and password are taken from the properties.
    The singleton.
  • Method Details

    • getInstance

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

      SessionInfo create(String username, char[] password, String propertiesName)
      Creates a session-info from a username, password, and property file holding the connection parameters.
      Parameters:
      username - is the name of the user, null if none
      password - is the password, null if none
      propertiesName - name of the properties resource, null if default ("backend")
      Returns:
      the created session-info
    • create

      SessionInfo create(String propertiesName)
      Creates a session-info from a property file holding the connection parameters.
      Parameters:
      propertiesName - name of the properties resource, null if default ("backend")
      Returns:
      the created session-info
    • create

      SessionInfo create(EncryptedProperties properties)
      Creates a session-info from properties.
      The username and password are taken from the properties.
      Parameters:
      properties - the properties
      Returns:
      the created session-info
    • create

      SessionInfo create()
      Creates a session-info from the default properties holding the connection parameters.
      Returns:
      the created session-info