ninja.NinjaExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s3ninja Show documentation
Show all versions of s3ninja Show documentation
S3 ninja emulates the S3 API for development and testing purposes.
/*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - [email protected]
*/
package ninja;
import sirius.kernel.Sirius;
import sirius.kernel.commons.Tuple;
import sirius.kernel.di.std.Register;
import sirius.web.templates.rythm.RythmExtension;
import java.util.function.Consumer;
/**
* Provides additional variables to the Rythm-Context.
*/
@Register
public class NinjaExtension implements RythmExtension {
@Override
public void collectExtensionNames(Consumer>> names) {
names.accept(Tuple.create("tagLine", String.class));
names.accept(Tuple.create("claim", String.class));
}
@Override
public void collectExtensionValues(Consumer> values) {
values.accept(Tuple.create("tagLine", Sirius.getConfig().getString("product.tagLine")));
values.accept(Tuple.create("claim", Sirius.getConfig().getString("product.claim")));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy