class HandlerFactoryConfiguration
{
ArrayList mappings;
+ int ownIndex;
public HandlerFactoryConfiguration () : this (null)
{
mappings = new ArrayList (parent.mappings);
else
mappings = new ArrayList ();
+
+ ownIndex = mappings.Count;
}
public void Add (HandlerItem mapping)
{
int end = mappings.Count;
+ for (int i = ownIndex; i < end; i++) {
+ HandlerItem item = (HandlerItem) mappings [i];
+ if (item.IsMatch (verb, path))
+ return i;
+ }
+
+ // parent mappings
+ end = ownIndex;
for (int i = 0; i < end; i++) {
HandlerItem item = (HandlerItem) mappings [i];
if (item.IsMatch (verb, path))