Name

cloneIsNeeded —

Synopsis

boolean  cloneIsNeeded

Description

Classes like file or db, whose objects are connected to resources that are external to Biferno, when duplicated, duplicate also the connection to the external resource (file or database).

This poses a risk of opening the same file multiple times or to unnecessarily increase the number of open connections to the same database, which is at best a waste of resources and may have unforeseen consequences.

It is possible to inquire if a class "clones" its objects (as the file and database classes do) using this property

Returns

true if the class clones its objects

Note

Only read property