/** * Handle install lifecycle callbacks. * * @param context the context * @param state the state * @throws Throwable for any error */ protected void handleInstallLifecycleCallbacks(ControllerContext context, ControllerState state) throws Throwable { handleLifecycleCallbacks(context, state, true); }
/** * Handle uninstall lifecycle callbacks. * * @param context the context * @param state the state * @throws Throwable for any error */ protected void handleUninstallLifecycleCallbacks(ControllerContext context, ControllerState state) throws Throwable { ControllerState oldState = stateModel.getNextState(state); handleLifecycleCallbacks(context, oldState, false); }