object ClosableUtils
A bug with Scala's duck typing implementation allows methods of non-public classes that implement public interfaces (or override public base class methods) to get invoked directly on the non-public class' member (which is illegal and provokes an IllegalAccessException) rather than indirectly via the public parent class or interface method. The safeClose / ReflectUtils stuff is to work around that. When Scala's duck type bugs are fixed, this should be removed.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ClosableUtils
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
Value Members
- def attemptClose(c1: Closable, c2: Closable, closables: Closable*): Unit
- def attemptClose(closable: Closable): Unit
- def attemptCloseAll(closables: Closable*): Unit
- def withClosable[T <: Closable, A](factoryMethod: () ⇒ T)(op: (T) ⇒ A): A
- def withDestroyable[T <: Destroyable](factoryMethod: () ⇒ T)(op: (T) ⇒ Unit): Unit