single
08-31-2005, 01:57 AM
In the inner class "DescendantContextInstantiator" of class "ContextHandler", the GetContextConstructor Method is :
private sealed class DescendantContextInstantiator : ContextInstantiator {
protected override ConstructorInfo GetContextConstructor() {
return ContextType.GetConstructor(new Type[] {
typeof (string[]),
typeof (IApplicationContext)});
}
}
But the constructor of class XmlApplicationContext is :
public XmlApplicationContext(
IApplicationContext parentContext,
params string[] configurationLocations) {}
so, the section 3.16. "Service Locator access" of reference document is not available.
private sealed class DescendantContextInstantiator : ContextInstantiator {
protected override ConstructorInfo GetContextConstructor() {
return ContextType.GetConstructor(new Type[] {
typeof (string[]),
typeof (IApplicationContext)});
}
}
But the constructor of class XmlApplicationContext is :
public XmlApplicationContext(
IApplicationContext parentContext,
params string[] configurationLocations) {}
so, the section 3.16. "Service Locator access" of reference document is not available.