plugin-lifecycle.puml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. @startuml
  2. !include theme.puml
  3. title Vendure Plugin Lifecycle
  4. hide footbox
  5. skinparam SequenceBoxBorderColor #efefef
  6. skinparam SequenceDividerBorderThickness 1
  7. skinparam BoxPadding 100
  8. participant VendurePlugin #13b7f3
  9. box "Vendure Server" #efefef
  10. participant "Server (NestApplication)" as NestApplication
  11. participant "Worker (NestMicroservice)" as NestMicroservice
  12. end box
  13. VendurePlugin -> NestApplication: static beforeVendureBootstrap
  14. VendurePlugin -> NestMicroservice: static beforeVendureWorkerBootstrap
  15. ||50||
  16. == Nestjs onModuleInit ==
  17. VendurePlugin -> NestApplication: onVendureBootstrap
  18. VendurePlugin -> NestMicroservice: onVendureWorkerBootstrap
  19. == Nestjs onApplicationBootstrap ==
  20. ||50||
  21. note over NestApplication, NestMicroservice #ccffcc: Vendure server running...
  22. ||50||
  23. note over NestApplication, NestMicroservice #ffcccc: Termination signal received
  24. == Nestjs onModuleDestroy ==
  25. VendurePlugin -> NestApplication: onVendureClose
  26. VendurePlugin -> NestMicroservice: onVendureWorkerClose
  27. == Nestjs beforeApplicationShutdown ==
  28. == Nestjs onApplicationShutdown ==
  29. @enduml