The Install and Uninstall Methods
Example 5.6. Install and Uninstall Methods import org.jboss.dependency.spi.ControllerContext; public class LifecycleCallback { public void install(ControllerContext ctx) { System.out.println("Bean " + ctx.getName() + " is being installed"; } public void uninstall(ControllerContext ctx) { System.out.println("Bean " + ctx.getName() + " is being uninstalled"; } } The install method is called during the bean's deployment, and the uninstall method during its undeployment.