ResourcefulReporter

Subtrait of Reporter that contains a dispose method for releasing any finite, non-memory resources, such as file handles, held by the Reporter. Runner will invoke dispose on any ResourcefulReporter when it no longer needs the Reporter.

trait Reporter
class Object
trait Matchable
class Any

Value members

Abstract methods

def dispose(): Unit

Release any finite, non-memory resources, such as file handles, held by this Reporter. Clients should call this method when they no longer need the Reporter, before releasing the last reference to the Reporter. After this method is invoked, the Reporter may be defunct, and therefore not usable anymore. If the Reporter holds no resources, it may do nothing when this method is invoked, however, in that case, it probably won't implement ResourcefulReporter.

Release any finite, non-memory resources, such as file handles, held by this Reporter. Clients should call this method when they no longer need the Reporter, before releasing the last reference to the Reporter. After this method is invoked, the Reporter may be defunct, and therefore not usable anymore. If the Reporter holds no resources, it may do nothing when this method is invoked, however, in that case, it probably won't implement ResourcefulReporter.

Inherited methods

def apply(event: Event): Unit

Invoked to report an event that subclasses may wish to report in some way to the user.

Invoked to report an event that subclasses may wish to report in some way to the user.

Value parameters:
event

the event being reported

Inherited from:
Reporter