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 a properties object.
    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 System.getProperty("user.name")
      password - is the password, null if none
      propertiesName - name of additional properties resources, null if default
      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 property resources, null if default
      Returns:
      the created session info
    • create

      SessionInfo create(EncryptedProperties properties)
      Creates a session info from a properties object.
      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