In proparse/setup/setup.p and associated programs you create instances of
com.joanju.proparse.Environment
org.prorefactor.core.schema.Schema
org.prorefactor.refactor.RefactorSession
references to which are not passed anywhere. Each appears to be static
in that you obtain the reference via getInstance() rather than newing
it. Am I correct that this is just "priming the pump" to create a
reference base which the rest of the Proparse objects refer and that it
is OK for these to persist?
Right now, I am starting a new AVM for each trial so I am always
starting with a clean slate, but if these should get cleaned up
normally, then that would be nice to know ... assuming that one *can*
clean them up!
Re: setup
Here's the code in question:
Those are 'singleton' objects in Proparse. My code here is just fetching references to them, then using them.