T
- public class DefaultLifecycleCallbackInvoker<T> extends Object implements LifecycleCallbackInvoker<T>
PostConstruct
/ PreDestroy
invocation is delegated to the intercepting proxy.Constructor and Description |
---|
DefaultLifecycleCallbackInvoker(EnhancedAnnotatedType<T> type) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasPostConstructMethods() |
boolean |
hasPreDestroyMethods() |
static <T> DefaultLifecycleCallbackInvoker<T> |
of(EnhancedAnnotatedType<T> type) |
void |
postConstruct(T instance,
Instantiator<T> instantiator) |
void |
preDestroy(T instance,
Instantiator<T> instantiator) |
public DefaultLifecycleCallbackInvoker(EnhancedAnnotatedType<T> type)
public static <T> DefaultLifecycleCallbackInvoker<T> of(EnhancedAnnotatedType<T> type)
public void postConstruct(T instance, Instantiator<T> instantiator)
postConstruct
in interface LifecycleCallbackInvoker<T>
public void preDestroy(T instance, Instantiator<T> instantiator)
preDestroy
in interface LifecycleCallbackInvoker<T>
public boolean hasPreDestroyMethods()
hasPreDestroyMethods
in interface LifecycleCallbackInvoker<T>
public boolean hasPostConstructMethods()
hasPostConstructMethods
in interface LifecycleCallbackInvoker<T>
Copyright © 2016. All rights reserved.