1 package net.javacoding.jspider.core.event.impl; 2 3 4 import net.javacoding.jspider.core.SpiderContext; 5 import net.javacoding.jspider.core.event.CoreEvent; 6 import net.javacoding.jspider.core.event.CoreEventVisitor; 7 8 import java.net.URL ; 9 10 11 17 public abstract class BaseCoreEventImpl implements CoreEvent { 18 19 protected SpiderContext context; 20 21 public BaseCoreEventImpl(SpiderContext context) { 22 this.context = context; 23 } 24 25 public String getName() { 26 return getClass().getName(); 27 } 28 29 public void accept(URL url, CoreEventVisitor visitor) { 30 visitor.visit(url, this); 31 } 32 33 public SpiderContext getContext() { 34 return context; 35 } 36 } 37 | Popular Tags |