Пример #1
0
 @Override
 public void setServer(Server server) {
   if (server instanceof Lifecycle) {
     for (LifecycleListener listener : this.lifecycle.findLifecycleListeners()) {
       ((Lifecycle) server).addLifecycleListener(listener);
     }
   }
   super.setServer(server);
 }