01: package net.javacoding.jspider.core.event.impl;
02:
03: import net.javacoding.jspider.core.SpiderContext;
04: import net.javacoding.jspider.core.event.CoreEvent;
05: import net.javacoding.jspider.core.event.CoreEventVisitor;
06:
07: import java.net.URL;
08:
09: /**
10: *
11: * $Id: BaseCoreEventImpl.java,v 1.3 2003/02/28 17:39:03 vanrogu Exp $
12: *
13: * @author Günther Van Roey
14: */
15: public abstract class BaseCoreEventImpl implements CoreEvent {
16:
17: protected SpiderContext context;
18:
19: public BaseCoreEventImpl(SpiderContext context) {
20: this .context = context;
21: }
22:
23: public String getName() {
24: return getClass().getName();
25: }
26:
27: public void accept(URL url, CoreEventVisitor visitor) {
28: visitor.visit(url, this );
29: }
30:
31: public SpiderContext getContext() {
32: return context;
33: }
34: }
|