Since Singleton Class Instances stay in memory until Classic session is closed, should they be avoided in PAS? #6
Unanswered
ChadThomsonPSC
asked this question in
Q&A
Replies: 1 comment
-
Singleton classes will remain instantiated on each AVM session. There is no critical reason NOT to implement singletons on PAS. Without getting into deep development, design patterns, and application testing discussions, using singletons is promoted when implementing webhandlers and REST entities. In fact, webhandlers and REST entities, unless configured otherwise, are treated as singletons where they are instantiated only on their first invocation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
"Since Singleton Class Instances (Object instances with Shared properties/methods) stay in memory until Classic session is closed, how are these handled in PAS OE? Should Singleton/Shared Object instances be avoided in PAS OE?"
Beta Was this translation helpful? Give feedback.
All reactions