Interface LazyInitialization.Initializer<T>

  • Type Parameters:
    T - type of target
    Enclosing class:
    LazyInitialization
    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 LazyInitialization.Initializer<T>
    Provider interface for proxy delegation target.
    • Method Detail

      • initialize

        T initialize()
        Initializes the actual target and returns it.

        In ideal scenario this method is called once for each proxy.

        Returns:
        Delegation target for created proxy