diff --git a/src/Spring/Spring.Web/Web/Support/ControlInterceptor.cs b/src/Spring/Spring.Web/Web/Support/ControlInterceptor.cs index 43ad6cf9..9b08f9de 100644 --- a/src/Spring/Spring.Web/Web/Support/ControlInterceptor.cs +++ b/src/Spring/Spring.Web/Web/Support/ControlInterceptor.cs @@ -65,6 +65,16 @@ namespace Spring.Web.Support /// private static readonly Hashtable s_cachedInterceptionStrategies = new Hashtable(); + /// + /// Holds well-known Type/Strategy mappings. + /// + private static readonly Hashtable s_knownInterceptionStrategies = new Hashtable(); + + static ControlInterceptor() + { + s_knownInterceptionStrategies[typeof(ControlCollection)] = s_availableInterceptionStrategies[1]; + } + private ControlInterceptor() { } @@ -119,19 +129,24 @@ namespace Spring.Web.Support } else { - // probe for a strategy - bool bOk = false; - for(int i=0;i