Package org.int4.dirk.spi.config
Interface LifeCycleCallbacks
-
public interface LifeCycleCallbacksInterface for calling life cycle methods on a given instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpostConstruct(java.lang.Object instance)Calls all post construct life cycle methods which were discovered on a type on an instance of the same type.voidpreDestroy(java.lang.Object instance)Calls all pre-destroy life cycle methods which were discovered on a type on an instance of the same type.
-
-
-
Method Detail
-
postConstruct
void postConstruct(java.lang.Object instance) throws java.lang.reflect.InvocationTargetExceptionCalls all post construct life cycle methods which were discovered on a type on an instance of the same type.- Parameters:
instance- an instance, cannot benull- Throws:
java.lang.reflect.InvocationTargetException- when a callback threw an exception
-
preDestroy
void preDestroy(java.lang.Object instance)
Calls all pre-destroy life cycle methods which were discovered on a type on an instance of the same type.- Parameters:
instance- an instance, cannot benull
-
-