org.scalatest

trait ResourcefulReporter

[source: org/scalatest/ResourcefulReporter.scala]

trait ResourcefulReporter
extends Reporter
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.
Method Summary
abstract 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.
Methods inherited from scala.Function1
scala.Function1.toString, scala.Function1.compose, scala.Function1.andThen
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Methods inherited from Reporter
apply (abstract)
Method Details
abstract 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.


Copyright (C) 2001-2010 Artima, Inc. All rights reserved.