Search in sources :

Example 1 with WebServletFace

use of org.nutz.boot.starter.WebServletFace in project nutzboot by nutzam.

the class NutFilterStarter method getInitParameters.

public Map<String, String> getInitParameters() {
    Map<String, String> params = new HashMap<>();
    params.put("modules", NbMainModule.class.getName());
    if (conf.has("nutz.mvc.ignore")) {
        params.put("ignore", conf.get("nutz.mvc.ignore"));
    }
    StringBuilder sb = new StringBuilder();
    for (WebServletFace face : appContext.getBeans(WebServletFace.class)) {
        sb.append(',').append(face.getPathSpec());
    }
    params.put("exclusions", conf.get("nutz.mvc.exclusions", "") + sb);
    return params;
}
Also used : HashMap(java.util.HashMap) WebServletFace(org.nutz.boot.starter.WebServletFace)

Aggregations

HashMap (java.util.HashMap)1 WebServletFace (org.nutz.boot.starter.WebServletFace)1