jodd-madvoc/src/main/java/jodd/madvoc/component/ContextInjectorComponent.java
public void injectContext(final Object targetObject) {
		final Class targetType = targetObject.getClass();

		final ScopeData scopeData = scopeDataInspector.inspectClassScopesWithCache(targetType);

		final Targets targets = new Targets(targetObject, scopeData);

		// inject no context
		scopeResolver.forEachScope(madvocScope -> madvocScope.inject(targets));

		// inject special case
		scopeResolver.forScope(ParamsScope.class, scope -> scope.inject(targets));

		// inject servlet context
		final ServletContext servletContext = madvocController.getApplicationContext();
		if (servletContext != null) {
			scopeResolver.forEachScope(madvocScope -> madvocScope.inject(servletContext, targets));
		}
	}
public void injectContext(final Object targetObject) {
		final Class targetType = targetObject.getClass();

		final ScopeData scopeData = scopeDataInspector.inspectClassScopesWithCache(targetType);

		final Targets targets = new Targets(targetObject, scopeData);

		// inject no context
		scopeResolver.forEachScope(madvocScope -> madvocScope.inject(targets));

		// inject special case
		scopeResolver.forScope(ParamsScope.class, scope -> scope.inject(targets));

		// inject servlet context
		final ServletContext servletContext = madvocController.getApplicationContext();
		if (servletContext != null) {
			scopeResolver.forEachScope(madvocScope -> madvocScope.inject(servletContext, targets));
		}
	}
public void injectContext ( final Object targetObject ) { final Class targetType = targetObject . getClass ( ) ; final ScopeData scopeData = scopeDataInspector . inspectClassScopesWithCache ( targetType ) ; final Targets targets = new Targets ( targetObject , scopeData ) ; // inject no context scopeResolver . forEachScope ( madvocScope -> madvocScope . inject ( targets ) ) ; // inject special case scopeResolver . forScope ( ParamsScope . class , scope -> scope . inject ( targets ) ) ; // inject servlet context final ServletContext servletContext = madvocController . getApplicationContext ( ) ; if ( servletContext != null ) { scopeResolver . forEachScope ( madvocScope -> madvocScope . inject ( servletContext , targets ) ) ; } }
Inject context into target.
Inject context into target .