Exemple #1
0
  @Override
  public void destroyPlugin() {
    // Degister HistoryPacketInterceptor
    final HistoryPacketInterceptor historyPacketInterceptor = HistoryPacketInterceptor.singleton();
    final InterceptorManager interceptorManager = InterceptorManager.getInstance();
    interceptorManager.removeInterceptor(historyPacketInterceptor);

    // Deregister PredictionIQHandler
    final XMPPServer xmppServer = XMPPServer.getInstance();
    final IQRouter iqRouter = xmppServer.getIQRouter();
    final PredictionIQHandler predictionIQHandler = PredictionIQHandler.singleton();
    iqRouter.removeHandler(predictionIQHandler);

    // Deregister LocationRepository
    final LocationRepository locationRepo = LocationRepository.singleton();
    iqRouter.removeHandler(locationRepo);
  }
 @Override
 public void destroyPlugin() {
   stopFIFOServer();
   mInterceptorManager.removeInterceptor(this);
 }