Search in sources :

Example 1 with FilterPropertiesProvider

use of io.crnk.servlet.internal.FilterPropertiesProvider in project crnk-framework by crnk-project.

the class CrnkFilter method init.

@Override
public void init(FilterConfig filterConfig) throws ServletException {
    this.filterConfig = filterConfig;
    boot = new CrnkBoot();
    boot.setPropertiesProvider(new FilterPropertiesProvider(filterConfig));
    HttpRequestContextProvider provider = boot.getModuleRegistry().getHttpRequestContextProvider();
    boot.addModule(new ServletModule(provider));
    initCrnk(boot);
    boot.boot();
}
Also used : FilterPropertiesProvider(io.crnk.servlet.internal.FilterPropertiesProvider) CrnkBoot(io.crnk.core.boot.CrnkBoot) ServletModule(io.crnk.servlet.internal.ServletModule) HttpRequestContextProvider(io.crnk.core.engine.http.HttpRequestContextProvider)

Aggregations

CrnkBoot (io.crnk.core.boot.CrnkBoot)1 HttpRequestContextProvider (io.crnk.core.engine.http.HttpRequestContextProvider)1 FilterPropertiesProvider (io.crnk.servlet.internal.FilterPropertiesProvider)1 ServletModule (io.crnk.servlet.internal.ServletModule)1