Class DatabaseSessionsFactory

java.lang.Object
rife.database.DbQueryManagerFactory
rife.authentication.sessionmanagers.DatabaseSessionsFactory

public class DatabaseSessionsFactory extends DbQueryManagerFactory
Factory for DatabaseSessions manager instances that creates singletons based on the Datasource.
Since:
1.0
  • Field Details

    • MANAGER_PACKAGE_NAME

      public static final String MANAGER_PACKAGE_NAME
      The package name of the datasource-specific implementations
  • Constructor Details

    • DatabaseSessionsFactory

      public DatabaseSessionsFactory()
  • Method Details

    • instance

      public static DatabaseSessions instance(Datasource datasource)
      Return an instance of DatabaseSessions for the provided Datasource.
      Parameters:
      datasource - the datasource that will be used to create the manager
      Returns:
      the requested DatabaseSessions instance
      Since:
      1.0