com.commercetools.sunrise.hooks.consumers.PageDataReadyHook Maven / Gradle / Ivy
package com.commercetools.sunrise.hooks.consumers;
import com.commercetools.sunrise.common.pages.PageData;
import com.commercetools.sunrise.hooks.HookRunner;
public interface PageDataReadyHook extends ConsumerHook {
void onPageDataReady(final PageData pageData);
static void runHook(final HookRunner hookRunner, final PageData pageData) {
hookRunner.runConsumerHook(PageDataReadyHook.class, hook -> hook.onPageDataReady(pageData));
}
}