This is demonstrated using the ExceptionHandler class, which again adopts a singleton design pattern.
使用exceptionhandler类可以展示这一点,该类也采用了singleton设计模式。
A simple optimization to this code would be to apply the Singleton design pattern to class Empty, because every instance of Empty is identical.
这段代码的一个简单优化是对empty类应用同一个设计类型,因为每一个Empty的实例都是同样的。
Hence, SignalTranslator adopts a singleton design pattern.
因此,SignalTranslator采用了singleton设计模式。
应用推荐