sirius.web.templates.GlobalContextExtender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sirius-web Show documentation
Show all versions of sirius-web Show documentation
Provides a modern and scalable web server as SIRIUS module
/*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - [email protected]
*/
package sirius.web.templates;
import java.util.function.BiConsumer;
/**
* Can be supplied to the content model (using the {@link sirius.kernel.di.std.Register} annotation) in order to
* extend (initialize) the contexts used by the {@link Generator}.
*/
public interface GlobalContextExtender {
/**
* Collects the names and values of the globals avilable when generating content.
*
* @param globalParameterCollector the collector to be supplied with the variable name and value.
*/
void collectTemplate(BiConsumer globalParameterCollector);
/**
* Collects the names and values of globals available when executing a system script.
*
* @param globalParameterCollector the collector to be supplied with the variable name and value.
*/
void collectScripting(BiConsumer globalParameterCollector);
}