Interface | Description |
---|---|
DialogManager.DialogResult |
The interface Dialog result.
|
LoadingScreenManager.LoadingScreenListener |
The interface Loading screen listener.
|
Class | Description |
---|---|
DialogManager |
The type Dialog manager.
|
DialogManager.SingletonHolder | |
ErrorManager |
The type Error manager.
|
ErrorManager.SingletonHolder | |
LoadingScreenManager |
The type Loading screen manager.
|
LoadingScreenManager.SingletonHolder | |
PaymentDataManager |
The type Payment data manager.
|
PaymentDataManager.SingletonCreationAdmin |
Here we will use inner class to create a singleton object of PaymentDataManager
Inner class singleton approach introduced by Bill Pugh >> singleton approaches :
- Eager initialization
- Static block initialization
- Lazy load initialization
- thread safe initialization
in this approach create the Singleton class using a inner static helper class
When the singleton class is loaded, SingletonCreationAdmin class is not loaded into memory
and only when someone calls the getInstance method.
|
PaymentProcessManager |
The type Payment process manager.
|
PaymentResultToastManager |
The type Payment result toast manager.
|
PaymentResultToastManager.SingletonHolder |