@OverrideOnDemand public boolean hasChildren () { return false; }
/** * Override this method to perform further actions AFTER the scope was * destroyed. The state is "destroyed". */ @OverrideOnDemand protected void postDestroy () {}
@OverrideOnDemand @Nonnegative public int getChildCount () { return 0; }
/** * Callback to be invoked when server successfully finished startup. * * @param aServer * The server that was started. Never <code>null</code>. * @since 7.0.2 */ @OverrideOnDemand protected void onServerStarted (@Nonnull final Server aServer) {}
/** * Callback before anything else happens. Handle with care! * * @param aSC * ServletContext */ @OverrideOnDemand protected void onTheVeryBeginning (@Nonnull final ServletContext aSC) {}
/** * Callback before init. By default some relevant debug information is emitted * * @param aSC * ServletContext */ @OverrideOnDemand protected void beforeContextInitialized (@Nonnull final ServletContext aSC) {}
/** * Init all available locales. This is called after init of global settings. * * @param aLocaleMgr * Locale manager */ @OverrideOnDemand protected void initLocales (@Nonnull final ILocaleManager aLocaleMgr) {}
/** * Optional callback to be invoked before the redirect happens. May not throw * any exception! * * @param aRequestScope * The current request scope. Never <code>null</code>. */ @OverrideOnDemand protected void onBeforeRedirect (@Nonnull final IRequestWebScopeWithoutResponse aRequestScope) {}
@Nullable @OverrideOnDemand public IHCNode getFirstChild () { return null; }
@Nullable @OverrideOnDemand public IHCNode getLastChild () { return null; }
@OverrideOnDemand public void onAddItem (@Nonnull final ITEMTYPE aItem) { // it doesn't matter to us } }
@Nonnull @OverrideOnDemand protected String getDigestMethod () throws Exception { return DigestMethod.SHA1; }
@OverrideOnDemand @Nullable public ICommonsList <IMicroNode> getAllChildren () { return null; }
@OverrideOnDemand @Nullable public ICommonsIterable <IMicroNode> getChildren () { return null; }
/** * Callback method invoked when an error occurs. * * @param aError * The occurred error. */ @OverrideOnDemand protected abstract void onEvent (@Nonnull final IError aError);
/** * Customize the passed unmarshaller before unmarshalling (reading) something. * * @param aUnmarshaller * The object to customize. Never <code>null</code>. */ @OverrideOnDemand protected void customizeUnmarshaller (@Nonnull final Unmarshaller aUnmarshaller) { // empty }
/** * Customize * * @param aWebAppCtx * Web application context */ @OverrideOnDemand protected void customizeWebAppCtx (@Nonnull final WebAppContext aWebAppCtx) {}
/** * Customize the empty form * * @param aSWEC * Web execution context. * @param aForm * The empty form. */ @OverrideOnDemand protected void onBeforeForm (@Nonnull final ISimpleWebExecutionContext aSWEC, @Nonnull final BootstrapForm aForm) {}
@OverrideOnDemand protected void debug (@Nonnull final Supplier <String> aSupplier) { if (m_bDebugMode) if (LOGGER.isInfoEnabled ()) LOGGER.info (aSupplier.get ()); }
/** * @return The dummy HTTP response to be used for executing this job. By * default a {@link MockHttpServletResponse} is created. */ @Nonnull @OverrideOnDemand protected MockHttpServletResponse createMockHttpServletResponse () { return new MockHttpServletResponse (); }