Interface ValuePreparer

  • @ConsumerType
    public interface ValuePreparer
    Optimization interface for Injectors which wish to avoid repeated accessing of some object based on the adaptable. If an Injector implements this interface, it must also be prepared to handle the case where ObjectUtils.NULL is passed as the adaptable.
    • Method Detail

      • prepareValue

        @NotNull java.lang.Object prepareValue​(@NotNull
                                               @NotNull java.lang.Object adaptable)
        Prepare a value from the adaptable.
        adaptable - the adaptable
        a prepared value or ObjectUtils.NULL if a value is not preparable