mardi 21 mars 2017

Better way as detroy singleton in java

i am currently stucking in a part of my project. The project is used to interpret printer languages and generate a preview. I created a singleton object which provides the emend coordinates to every command implementation. To reset the coordinates, I had to equip the singleton instance with a reset method and have the render class AutoCloseable implemented. Do someone know a better way? Is this a code smell?

class for rendering

singleton

Aucun commentaire:

Enregistrer un commentaire