1 package de.webman.generator; 2 3 import com.teamkonzept.web.TKEvent; 4 import com.teamkonzept.webman.mainint.events.CachedEventDistributor; 5 import de.webman.generator.eventhandler.*; 6 11 public class GREventDistributor extends CachedEventDistributor 12 { 13 14 public GREventDistributor() 15 { 16 addEventHandler(GRGenerateHandler.getInstance()); 17 addEventHandler(GRValidateHandler.getInstance()); 18 addEventHandler(GROnlineHandler.getInstance()); 19 addEventHandler(GRTransmitHandler.getInstance()); 20 } 21 22 public boolean isHandler(TKEvent evt) 23 { 24 return evt.getName().startsWith("GR"); 25 } 26 27 } 28 | Popular Tags |