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 Summary
Modifier and TypeMethodDescriptiondefault booleanbooleanbooleanvoidpostConstruct(T instance, Instantiator<T> instantiator) voidpreDestroy(T instance, Instantiator<T> instantiator)
-
Method Details
-
postConstruct
-
preDestroy
-
hasPreDestroyMethods
boolean hasPreDestroyMethods() -
hasPostConstructMethods
boolean hasPostConstructMethods() -
hasPostConstructCallback
default boolean hasPostConstructCallback()
-