On 30 November 2011 20:57, Philippe Mouawad <[email protected]> wrote:
> Hello,
> Do you see any reason for engine field being static ?

As per the comments:

    // Allow engine and threads to be stopped from outside a thread
    // e.g. from beanshell server
    // Assumes that there is only one instance of the engine
    // at any one time so it is not guaranteed to work ...

>   - All static methods that use it are not called anywhere

BeanShell scripts use introspection to get access.

>   - askThreadsToStop could just call stopTest(false)

Yes, I think it could.

>
> I think field should be removed to make code cleaner.

Only if an alternative way can be found to allow scripts to access the engine.
But would probably still need to keep the static methods, at least for a while.

> Regards.
> Philippe.

Reply via email to