Interface CurrentInstanceFallbackResolver<T>

  • Type Parameters:
    T - the type of the instances returned by this resolver
    All Superinterfaces:
    java.io.Serializable

    public interface CurrentInstanceFallbackResolver<T>
    extends java.io.Serializable
    Fallback that is used to revolve current instances when they are not available by regular means.

    This interface is used internally by the framework and it's not meant for public usage.

    Since:
    8.5.2
    Author:
    Vaadin Ltd.
    See Also:
    CurrentInstance.get(Class), CurrentInstance.defineFallbackResolver(Class, CurrentInstanceFallbackResolver)
    • Method Detail

      • resolve

        T resolve()
        Resolves a current instance for the type T.
        Returns:
        the current instance, or null if none can be found