Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factory Pattern #49

Open
wsdt opened this issue Jul 27, 2018 · 1 comment
Open

Factory Pattern #49

wsdt opened this issue Jul 27, 2018 · 1 comment
Labels
enhancement New feature or request
Projects

Comments

@wsdt
Copy link
Owner

wsdt commented Jul 27, 2018

Avoid using Singletons, maybe change to Factory Pattern (if an alternative is needed):

1 Factory can consist of many classes with a similar lifetime (e.g. level-dependent, etc.) --> so group singleton-like classes into a factory which get's instantiated.

@wsdt wsdt added the enhancement New feature or request label Jul 27, 2018
@wsdt wsdt added this to To do in Alpha V2 via automation Jul 27, 2018
@wsdt
Copy link
Owner Author

wsdt commented Jul 31, 2018

Transformed Mgrs' methods/members to static and made all constructors private, so NO INSTANCE can be created.

If an instance is necessary, use Factory pattern and not singleton.

@wsdt wsdt moved this from To do to In progress in Alpha V2 Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Alpha V2
  
In progress
Development

No branches or pull requests

1 participant