Class DefaultSessionInfoFactory

java.lang.Object
org.tentackle.session.DefaultSessionInfoFactory
All Implemented Interfaces:
SessionInfoFactory

@Service(SessionInfoFactory.class) public class DefaultSessionInfoFactory extends Object implements SessionInfoFactory
Default session info factory.
Author:
harald
  • Constructor Details

    • DefaultSessionInfoFactory

      public DefaultSessionInfoFactory()
      Creates the session info factory.
  • Method Details

    • create

      public SessionInfo create(String username, char[] password, String propertiesName)
      Description copied from interface: SessionInfoFactory
      Creates a session info from a username, password and property file holding the connection parameters.
      Specified by:
      create in interface SessionInfoFactory
      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

      public SessionInfo create(String propertiesName)
      Description copied from interface: SessionInfoFactory
      Creates a session info from a property file holding the connection parameters.
      Specified by:
      create in interface SessionInfoFactory
      Parameters:
      propertiesName - name of the property resources, null if default
      Returns:
      the created session info
    • create

      public SessionInfo create(org.tentackle.common.EncryptedProperties properties)
      Description copied from interface: SessionInfoFactory
      Creates a session info from a properties object.
      Specified by:
      create in interface SessionInfoFactory
      Parameters:
      properties - the properties
      Returns:
      the created session info
    • create

      public SessionInfo create()
      Description copied from interface: SessionInfoFactory
      Creates a session info from the default properties holding the connection parameters.
      Specified by:
      create in interface SessionInfoFactory
      Returns:
      the created session info