示例#1
0
 @Override
 public void reciveContext(IModule source, Context context, IModule target) {
   if (source instanceof IPluginManager) {
     if (invoker == null) {
       invoker = source;
     }
     if (context.getContextType() == ContextType.INIT) {
       init();
     }
     if (context.getContextType() == ContextType.CRAWL) {
       crawl();
     }
     if (context.getContextType() == ContextType.REPORT) {
       System.out.println("done");
     }
   }
 }