Design patternsMonostate


Remarks

As a side note, a few advantages of the Monostate pattern over the Singleton:

  • There is no 'instance` method to be able to access an instance of the class.
  • A Singleton does not conform to the Java beans notation, but a Monostate does.
  • Lifetime of instances can be controlled.
  • Users of the Monostate don't know that they are using a Monostate.
  • Polymorphism is possible.