Search in sources :

Example 1 with IndexHtmlGenerator

use of horse.wtf.nzyme.rest.web.IndexHtmlGenerator in project nzyme by lennartkoopmann.

the class NzymeLeaderInjectionBinder method configure.

@Override
protected void configure() {
    bind(nzyme).to(NzymeLeader.class);
    bind(new MimetypesFileTypeMap()).to(MimetypesFileTypeMap.class);
    bind(nzyme.getObjectMapper()).to(ObjectMapper.class);
    try {
        bind(new IndexHtmlGenerator(nzyme.getConfiguration(), new AssetManifest())).to(IndexHtmlGenerator.class);
    } catch (IOException e) {
        throw new RuntimeException("Could not bind IndexHtmlGenerator.", e);
    }
}
Also used : MimetypesFileTypeMap(javax.activation.MimetypesFileTypeMap) AssetManifest(horse.wtf.nzyme.rest.web.AssetManifest) IOException(java.io.IOException) IndexHtmlGenerator(horse.wtf.nzyme.rest.web.IndexHtmlGenerator)

Aggregations

AssetManifest (horse.wtf.nzyme.rest.web.AssetManifest)1 IndexHtmlGenerator (horse.wtf.nzyme.rest.web.IndexHtmlGenerator)1 IOException (java.io.IOException)1 MimetypesFileTypeMap (javax.activation.MimetypesFileTypeMap)1