- All Known Implementing Classes:
DefaultSessionInfoFactory
public interface SessionInfoFactory
Factory for
SessionInfo.- Author:
- harald
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a session info from the default properties holding the connection parameters.Creates a session info from a property file holding the connection parameters.Creates a session info from a username, password and property file holding the connection parameters.create(EncryptedProperties properties) Creates a session info from a properties object.static SessionInfoFactoryThe singleton.
-
Method Details
-
getInstance
The singleton.- Returns:
- the singleton
-
create
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 resources, null if default- Returns:
- the created session info
-
create
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
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
-