Interface Disposable

  • All Known Subinterfaces:
    Storage
    All Known Implementing Classes:
    AbstractStructureProvider, Cache, FilteredStructure, Structure

    public interface Disposable
    Defines an element that can be disposed, typically to free some temporary allocated resources when the element is not to be used anymore. The standard pattern is the code that instantiates a Disposable object is also in charge to dispose() it, typically in a try/finally block.
    • Method Detail

      • dispose

        void dispose()
        Disposes the instance, which shall free any resource used. The instance is no longer to be used once this method has been called.