Class ScopedObject<T>

  • Type Parameters:
    T - Parameter type
    All Implemented Interfaces:
    AutoCloseable, Supplier<T>

    public class ScopedObject<T>
    extends Object
    implements Supplier<T>, AutoCloseable
    A parameter as an object with a scope and that can be closed when the scope exits.

    This is useful for parameter providers.

    Author:
    Julien Ponge