1
vote
1answer
154 views

Why is android.app.Application not singleton by default [closed]

In many Android applications which I have found online or written myself, there is an application class like this: public class MyApp extends Application { private static MyApp instance; ...
2
votes
2answers
118 views

best way to use singleton

I know 3 ways for using singleton in our code and I want to know which one is the best way and you prefer more. The first is to have a Singleton class and every classes that want to be singleton ...
4
votes
2answers
412 views

Three-tier application with singleton pattern

I am creating a 3-Tier Windows Forms Application. Questions Am I using the right architecture, or can you suggest a better approach? Is there any way to make the base class be a Singleton? Is ...
7
votes
1answer
576 views

JavaScript Boilerplate - Review comments required

I am in between to create JavaScript Boilerplate (collection of best practices around) for low/medium complex project and will host on GitHub in sometime once finalized it. Have divided the ...
0
votes
1answer
48 views

adding APL logger to an application [closed]

I have an application (Legacy code) that contains interface Icomponent with save() methods and many classes that implement it. I want to add log after every save(). I thought to use the ...
4
votes
1answer
957 views

Singleton class extending a parent class to utilise shared functionality

I have a singleton class which extends from an abstract java class. Two singleton classes extend from ItemImageThreadManager, the reason for this is to use shared scheduling functionality. A thread is ...