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

org.minijax.mustache.MustacheFeature Maven / Gradle / Ivy

There is a newer version: 0.5.10
Show newest version
package org.minijax.mustache;

import javax.ws.rs.core.Feature;
import javax.ws.rs.core.FeatureContext;

import com.github.mustachejava.DefaultMustacheFactory;
import com.github.mustachejava.MustacheFactory;

public class MustacheFeature implements Feature {

    @Override
    public boolean configure(final FeatureContext context) {
        context.register(new DefaultMustacheFactory(), MustacheFactory.class);
        context.register(MinijaxMustacheWriter.class);
        context.register(MinijaxMustacheExceptionMapper.class);
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy