Interface LifecycleCallbackInvoker<T>
-
- Type Parameters:
T
-
- All Known Implementing Classes:
DefaultLifecycleCallbackInvoker
,NoopLifecycleCallbackInvoker
public interface LifecycleCallbackInvoker<T>
Implementations of this interface are capable of performingPostConstruct
/PreDestroy
lifecycle callback invocations.- Author:
- Jozef Hartinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
hasPostConstructCallback()
boolean
hasPostConstructMethods()
boolean
hasPreDestroyMethods()
void
postConstruct(T instance, Instantiator<T> instantiator)
void
preDestroy(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()
-
-