library-ts/node/users/apps/UserAppFactory.ts

21 lines
439 B
TypeScript
Raw Normal View History

2025-11-15 18:58:30 +00:00
import { UserManagementServer } from "../UserManagementServer";
import { ReminderApp } from "./reminder/ReminderApp";
import { UserApp } from "./UserApp";
export class UserAppFactory
{
static create( id:string, ums:UserManagementServer ):UserApp<any>
{
let constructors = [ ReminderApp ];
for ( let c of constructors )
{
if ( c.id === id )
{
return new c( ums );
}
}
return null;
};
}