-
- All Known Implementing Classes:
DefaultSessionInfoFactory
public interface SessionInfoFactoryFactory forSessionInfo.- Author:
- harald
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description SessionInfocreate()Creates a session info from the default property file holding the connection parameters.SessionInfocreate(java.lang.String propertiesName)Creates a session info from a property file holding the connection parameters.SessionInfocreate(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.SessionInfocreate(java.util.Properties properties)Creates a session info from a properties object.static SessionInfoFactorygetInstance()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 ifSystem.getProperty("user.name")password- is the password, null if nonepropertiesName- 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
-
-