package org.apache.struts.config;

import org.apache.commons.digester.Rule;
import org.xml.sax.Attributes;

final class SetActionMappingClassRule extends Rule {
  public void begin(Attributes attributes) throws Exception {
    String className = attributes.getValue("type");
    if (className != null) {
      ModuleConfig mc = (ModuleConfig)this.digester.peek();
      mc.setActionMappingClass(className);
    } 
  }
}
