...
Joshua Bloch [Bloch 2008] suggests implementing a stop()
method explicitly such that it leaves the class in an unusable state beyond its lifetime. A private field within the class can signal whether the class is unusable. All the class methods must check this field prior to operating on the class. This is akin to the "initialized flag" �����������€š�š�š�š�š�����������‚�š�š�š�š����������‚�š�š�š��������‚�š�š������‚�š����‚��“ ������������‚�š�š�š�š�š������������€š�š�š�š�š�����������€š�š�š�š���������€š�š�š�������€š�š�����€š���€œ compliant solution discussed in rule OBJ11-J. Be wary of letting constructors throw exceptions. As always, a good place to call the termination logic is in the finally
block.
...