Interface ResolveParameterHook.ParameterSupplier

  • Enclosing interface:
    ResolveParameterHook
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface ResolveParameterHook.ParameterSupplier
    A functional interface specialized on providing parameters to property methods and to annotated lifecycle methods.
    • Method Detail

      • get

        java.lang.Object get​(java.util.Optional<TryLifecycleContext> optionalTry)
        Supply the requested parameter. For the same optionalTry the same object must be returned if this object has state that could change its behaviour.
        Parameters:
        optionalTry - Contains a TryLifecycleContext instance if used to supply a property method's parameter. Otherwise it's empty.
        Returns:
        the freshly generated object or one stored for the same context