Interface IResourceOpenFunction<T,​R>

  • Type Parameters:
    T - Type of the parameters for opening the resource.
    R - Type of the resource to open.

    public interface IResourceOpenFunction<T,​R>
    A function that opens a resource and may throw an exception in doing so.
    Since:
    8.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • open

        R open​(T value)
        throws Exception
        Opens the resource which will be closed at a later time.
        Parameters:
        value - Parameters for opening the resource.
        Returns:
        The opened resource.
        Throws:
        Exception - When the resource could not be opened for any reason.