Search in sources :

Example 1 with RequestScopeInjector

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);
}
Also used : SessionScopeInjector(jodd.madvoc.injector.SessionScopeInjector) RequestScopeInjector(jodd.madvoc.injector.RequestScopeInjector) MadvocContextScopeInjector(jodd.madvoc.injector.MadvocContextScopeInjector) MadvocParamsInjector(jodd.madvoc.injector.MadvocParamsInjector) ActionPathMacroInjector(jodd.madvoc.injector.ActionPathMacroInjector) ApplicationScopeInjector(jodd.madvoc.injector.ApplicationScopeInjector) ServletContextScopeInjector(jodd.madvoc.injector.ServletContextScopeInjector) PetiteInitMethod(jodd.petite.meta.PetiteInitMethod)

Example 2 with RequestScopeInjector

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);
}
Also used : RequestScopeInjector(jodd.madvoc.injector.RequestScopeInjector) ScopeData(jodd.madvoc.ScopeData)

Aggregations

RequestScopeInjector (jodd.madvoc.injector.RequestScopeInjector)2 ScopeData (jodd.madvoc.ScopeData)1 ActionPathMacroInjector (jodd.madvoc.injector.ActionPathMacroInjector)1 ApplicationScopeInjector (jodd.madvoc.injector.ApplicationScopeInjector)1 MadvocContextScopeInjector (jodd.madvoc.injector.MadvocContextScopeInjector)1 MadvocParamsInjector (jodd.madvoc.injector.MadvocParamsInjector)1 ServletContextScopeInjector (jodd.madvoc.injector.ServletContextScopeInjector)1 SessionScopeInjector (jodd.madvoc.injector.SessionScopeInjector)1 PetiteInitMethod (jodd.petite.meta.PetiteInitMethod)1