Abstract
YYou will find this design pattern useful when you need to guarantee that there is only a single instance of a class available during execution.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Though not a need, many users now prefer a multiple-monitor configuration.
- 2.
GoF , p. 127.
- 3.
In ABAP, a class marked as create private will confer create none upon any subclasses, preventing them from both being instantiated and creating instances of the superclass. Accordingly, SAP recommends including the final qualifier in the definition of those classes that are assigned create private instantiability.
- 4.
Such references, where any one of the three components could use up to the full 30-character maximum length of its respective component name, would not have been possible years ago in releases of SAP environments such as R/3 where the ABAP editor restricted the width of a single line to 72 characters. Extending this editor line width restriction, which now stands at 255 characters, made it possible to construct such long compound references without having to resort to cumbersome techniques to avoid overrunning the line end barrier.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 James E. McDonough
About this chapter
Cite this chapter
McDonough, J.E. (2017). Singleton Design Pattern. In: Object-Oriented Design with ABAP. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2838-8_11
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2838-8_11
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2837-1
Online ISBN: 978-1-4842-2838-8
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books