Back to project page Spidermine.
The source code is released under:
Copyright ? 2014 PEMapModder This software is open-source and everyone is welcome to share redistributions or modifications, as long as it is clearly specified that this project's original source is ...
If you think the Android project Spidermine listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pemapmodder.spidermine.events; // w ww . j a v a 2 s . c o m import pemapmodder.spidermine.SpiderServer; import android.os.Bundle; public abstract class Event<DataType>{ protected EventHandler[] handlers; public final SpiderServer server; public Event(SpiderServer server){ this.server=server; } public void registerHandler(EventHandler handler){ handlers[handlers.length]=handler; } public Bundle[] invoke(DataType data){ for(int i=0; i<handlers.length; i++){ EventResult result=handlers[i].handleEvent(data); if(!result.doCont) break; } return getOutput(); } }