From 52446cb8f4b7a6d13c554e4bce58d0ecf131b5fb Mon Sep 17 00:00:00 2001 From: eeichinger Date: Wed, 1 Oct 2008 15:32:46 +0000 Subject: [PATCH] fixed SPRNET-1023 --- .../Web/Support/ControlInterceptor.cs | 39 +++++++++++++------ 1 file changed, 27 insertions(+), 12 deletions(-) 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