final case classLoadedJarFile(key: RemoteStorageLocation, file: File) extends Product with Serializable
This pairing may seem unnecessary at first, but the combination of this local file reference and RemoteStorageLocation
allows org.apache.commons.io.FileCleaningTracker to detect when the last reference to the RemoteStorageLocation
has been garbage collected and can therefore delete the local File instance from disk.
By combining them into this case class and using the case class in the API signature, it ensures that consumers
don't retain a reference to the local file without also retaining a reference to the RemoteStorageLocation instance.
Created by jpetty on 7/30/15.
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
This pairing may seem unnecessary at first, but the combination of this local file reference and RemoteStorageLocation allows org.apache.commons.io.FileCleaningTracker to detect when the last reference to the RemoteStorageLocation has been garbage collected and can therefore delete the local File instance from disk.
By combining them into this case class and using the case class in the API signature, it ensures that consumers don't retain a reference to the local file without also retaining a reference to the RemoteStorageLocation instance.
Created by jpetty on 7/30/15.