jeudi 20 octobre 2016

restoring object to default state

I am applying an object pool where we are facing issues because of huge number of object creation. For the same I need a clear() method to clean or restore object to the default state of every object, as if it is a newly created object. Can this be done without having manually calling each method to set to default as this would lead to a chance of a bug if developer forget to update clear() when changing bean class.

Aucun commentaire:

Enregistrer un commentaire