All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.commercetools.sunrise.framework.hooks.application.PageDataReadyHook Maven / Gradle / Ivy

The newest version!
package com.commercetools.sunrise.framework.hooks.application;

import com.commercetools.sunrise.framework.viewmodels.PageData;
import com.commercetools.sunrise.framework.hooks.HookRunner;

/**
 * Hook to be executed right after the {@link PageData} has been generated and before transforming it into some readable content, such as HTML.
 */
public interface PageDataReadyHook extends ApplicationHook {

    void onPageDataReady(final PageData pageData);

    static void runHook(final HookRunner hookRunner, final PageData pageData) {
        hookRunner.runConsumerHook(PageDataReadyHook.class, hook -> hook.onPageDataReady(pageData));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy