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 Summary
Constructors -
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(org.tentackle.common.EncryptedProperties properties) Creates a session info from a properties object.
-
Constructor Details
-
DefaultSessionInfoFactory
public DefaultSessionInfoFactory()Creates the session info factory.
-
-
Method Details
-
create
Description copied from interface:SessionInfoFactoryCreates a session info from a username, password and property file holding the connection parameters.- Specified by:
createin interfaceSessionInfoFactory- 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
Description copied from interface:SessionInfoFactoryCreates a session info from a property file holding the connection parameters.- Specified by:
createin interfaceSessionInfoFactory- Parameters:
propertiesName- name of the property resources, null if default- Returns:
- the created session info
-
create
Description copied from interface:SessionInfoFactoryCreates a session info from a properties object.- Specified by:
createin interfaceSessionInfoFactory- Parameters:
properties- the properties- Returns:
- the created session info
-
create
Description copied from interface:SessionInfoFactoryCreates a session info from the default properties holding the connection parameters.- Specified by:
createin interfaceSessionInfoFactory- Returns:
- the created session info
-