Interface SessionInfoFactory

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      SessionInfo create()
      Creates a session info from the default property file holding the connection parameters.
      SessionInfo create​(java.lang.String propertiesName)
      Creates a session info from a property file holding the connection parameters.
      SessionInfo create​(java.lang.String username, char[] password, java.lang.String propertiesName)
      Creates a session info from a username, password and property file holding the connection parameters.
      SessionInfo create​(java.util.Properties properties)
      Creates a session info from a properties object.
      static SessionInfoFactory getInstance()
      The singleton.
    • Method Detail

      • getInstance

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

        SessionInfo create​(java.lang.String username,
                           char[] password,
                           java.lang.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 resource, null if default
        Returns:
        the created session info
      • create

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

        SessionInfo create​(java.util.Properties 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 property file holding the connection parameters.
        Returns:
        the created session info