Interface LifecycleCallbackInvoker<T>
-
- Type Parameters:
T-
- All Known Implementing Classes:
DefaultLifecycleCallbackInvoker,NoopLifecycleCallbackInvoker
public interface LifecycleCallbackInvoker<T>Implementations of this interface are capable of performingPostConstruct/PreDestroylifecycle callback invocations.- Author:
- Jozef Hartinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanhasPostConstructCallback()booleanhasPostConstructMethods()booleanhasPreDestroyMethods()voidpostConstruct(T instance, Instantiator<T> instantiator)voidpreDestroy(T instance, Instantiator<T> instantiator)
-
-
-
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()
-
-