You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
858 B
28 lines
858 B
import AbstractFactory from '../../../../di/src/factory/AbstractFactory.ts'
|
|
import {DependencyRequirement} from '../../../../di/src/type/DependencyRequirement.ts'
|
|
import {Collection} from '../../collection/Collection.ts'
|
|
import MemorySessionManager from './MemorySessionManager.ts'
|
|
import SessionManager from './SessionManager.ts'
|
|
|
|
/**
|
|
* Base class for IoC factories that produce session managers.
|
|
* @extends AbstractFactory
|
|
*/
|
|
export default class SessionManagerFactory extends AbstractFactory {
|
|
constructor() {
|
|
super({})
|
|
}
|
|
|
|
produce(dependencies: any[], parameters: any[]): any {
|
|
return new MemorySessionManager()
|
|
}
|
|
|
|
match(something: any) {
|
|
return something === SessionManager
|
|
}
|
|
|
|
get_dependency_keys(): Collection<DependencyRequirement> {
|
|
return new Collection<DependencyRequirement>()
|
|
}
|
|
}
|