| 1 package com.tirsen.nanning.xml; 2 3 import com.tirsen.nanning.config.InterceptorAspect; 4 import com.tirsen.nanning.config.Introductor; 5 import org.apache.commons.digester.Digester; 6 import org.apache.commons.digester.ObjectCreationFactory; 7 import org.xml.sax.Attributes ; 8 9 public class IntroductorAspectFactory implements ObjectCreationFactory { 10 public Object createObject(Attributes attributes) throws Exception { 11 Class interfaceClass = Class.forName(attributes.getValue("interface")); 12 Class targetClass = Class.forName(attributes.getValue("target")); 13 return new Introductor(interfaceClass, targetClass); 14 } 15 16 public Digester getDigester() { 17 return null; 18 } 19 20 public void setDigester(Digester digester) { 21 } 22 } 23 | Popular Tags |