use of jodd.madvoc.injector.RequestScopeInjector in project jodd by oblac.
the class InjectorsManager method createInjectors.
@PetiteInitMethod(order = 1, invoke = POST_DEFINE)
void createInjectors() {
requestScopeInjector = new RequestScopeInjector(madvocConfig, scopeDataResolver);
sessionScopeInjector = new SessionScopeInjector(scopeDataResolver);
actionPathMacroInjector = new ActionPathMacroInjector(scopeDataResolver);
madvocContextScopeInjector = new MadvocContextScopeInjector(scopeDataResolver, madpc);
madvocParamsInjector = new MadvocParamsInjector(madvocConfig);
applicationScopeInjector = new ApplicationScopeInjector(scopeDataResolver);
servletContextScopeInjector = new ServletContextScopeInjector(scopeDataResolver);
}
use of jodd.madvoc.injector.RequestScopeInjector in project jodd by oblac.
the class PreparableInterceptor method init.
@Override
public void init() {
requestInjector = new RequestScopeInjector(madvocConfig, scopeDataResolver) {
@Override
protected String getMatchedPropertyName(ScopeData.In in, String attrName) {
if (StringUtil.endsWithOne(attrName, ATTR_NAME_ID_SUFFIXES) == -1) {
// no match
return null;
}
return super.getMatchedPropertyName(in, attrName);
}
};
requestInjector.setInjectAttributes(false);
}
Aggregations