001package io.avaje.inject.core; 002 003/** 004 * Lifecycle of beans via <code>@PostConstruct</code> and <code>@PreDestroy</code>. 005 */ 006public interface BeanLifecycle { 007 008 /** 009 * Fire post construction. 010 */ 011 void postConstruct(); 012 013 /** 014 * Fire on shutdown or close of the bean context. 015 */ 016 void preDestroy(); 017}