Interface LifecycleCallbackInvoker<T>

  • Type Parameters:
    T -
    All Known Implementing Classes:
    DefaultLifecycleCallbackInvoker, NoopLifecycleCallbackInvoker

    public interface LifecycleCallbackInvoker<T>
    Implementations of this interface are capable of performing PostConstruct / PreDestroy lifecycle callback invocations.
    Author:
    Jozef Hartinger
    • Method Detail

      • postConstruct

        void postConstruct​(T instance,
                           Instantiator<T> instantiator)
      • preDestroy

        void preDestroy​(T instance,
                        Instantiator<T> instantiator)
      • hasPreDestroyMethods

        boolean hasPreDestroyMethods()
      • hasPostConstructMethods

        boolean hasPostConstructMethods()
      • hasPostConstructCallback

        default boolean hasPostConstructCallback()