Thanks for the feedback! Its not (per se) a 'bug' so much as an incomplete implementation of the feature (and yes, this is indeed sort of a distinction without a difference from the POV of a user right now
).
The behavior in the M1 release was implemented to support nested contexts/scopes but the extension point that would permit a separate configuration being used for the 'child' context isn't there (yet). So that the existing code *worked* at all, we left it as returning the child container with a config matching its parent. The (eventual) intent is for there to be a property setter on the parent SpringWebApiDependencyResolver that permits setting one or more IResource objects or strings pointing to ConfigurationSources (e.g., "file://~/childconfig.xml") that will be used to construct the nested context(s).
This is expected to take the form of something like the following being added to the SpringWebApiDependencyResolver class ...
Code:
public string[] ChildContextConfigSources { set; }
public void AddChildContextConfigSource (string resourceUrl)
public IResource[] ChildContextConfigResources { set; }
public void AddChildContextConfigResource (IResource resource)
...so that you can set these properties/call these methods during the config of the SpringWebApiDependencyResolver by overriding the SpringMvcApplication.ConfigureApplicationContext method.
With luck, this code (and its assoc. behavior!) will be in the MASTER branch of the repo by week's end (7/6).
Does this make sense --?
-Steve B.