Scalax
|
|
scalax/control/ManagedResource.scala
]
object
ManagedResource
extends
AnyRefMethod Summary | |
def
|
apply
[A <: AnyRef](opener : => A) : UntranslatedManagedResource[A]
Creates a ManagedResource for any type with a close method. Note that
the opener argument is evaluated on demand, possibly more than once, so
it must contain the code that actually acquires the resource. Clients
are encouraged to write specialized methods to instantiate
ManagedResources rather than relying on ad-hoc usage of this method.
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
def
apply[A <: AnyRef](opener : => A) : UntranslatedManagedResource[A]
Scalax
|
|