- java.lang.Object
-
- org.tentackle.session.DefaultSessionInfoFactory
-
- All Implemented Interfaces:
SessionInfoFactory
@Service(SessionInfoFactory.class) public class DefaultSessionInfoFactory extends java.lang.Object implements SessionInfoFactory
Default session info factory.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description DefaultSessionInfoFactory()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Method Detail
-
create
public SessionInfo create(java.lang.String username, char[] password, java.lang.String propertiesName)
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 resource, null if default- Returns:
- the created session info
-
create
public SessionInfo create(java.lang.String propertiesName)
Description copied from interface:SessionInfoFactoryCreates a session info from a property file holding the connection parameters.- Specified by:
createin interfaceSessionInfoFactory- Parameters:
propertiesName- name of additional properties resource, null if default- Returns:
- the created session info
-
create
public SessionInfo create(java.util.Properties properties)
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
public SessionInfo create()
Description copied from interface:SessionInfoFactoryCreates a session info from the default property file holding the connection parameters.- Specified by:
createin interfaceSessionInfoFactory- Returns:
- the created session info
-
-