org.duh.resource
Implicit conversions based on existence of methods (duck typing). These must be imported explicitly to avoid exposing conversions to ManagedResource unless that behavior is specifically desired.
Makes any object with a close() method usable as an AutoResource.
close()
Makes any object with a dispose() method usable as an AutoResource.
dispose()
Implicit conversions based on existence of methods (duck typing). These must be imported explicitly to avoid exposing conversions to ManagedResource unless that behavior is specifically desired.