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