comparison src/org/eclipse/jetty/server/handler/HandlerWrapper.java @ 848:22a4e93ed20e

remove Container
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 19 Sep 2016 16:38:36 -0600
parents 3428c60d7cfc
children d9d95acded81
comparison
equal deleted inserted replaced
847:5dfb10ec0ca5 848:22a4e93ed20e
77 77
78 Handler old_handler = _handler; 78 Handler old_handler = _handler;
79 _handler = handler; 79 _handler = handler;
80 if (handler!=null) 80 if (handler!=null)
81 handler.setServer(getServer()); 81 handler.setServer(getServer());
82
83 if (getServer()!=null)
84 getServer().getContainer().update(this, old_handler, handler, "handler");
85 } 82 }
86 83
87 /* ------------------------------------------------------------ */ 84 /* ------------------------------------------------------------ */
88 /* 85 /*
89 * @see org.eclipse.thread.AbstractLifeCycle#doStart() 86 * @see org.eclipse.thread.AbstractLifeCycle#doStart()
132 super.setServer(server); 129 super.setServer(server);
133 130
134 Handler h=getHandler(); 131 Handler h=getHandler();
135 if (h!=null) 132 if (h!=null)
136 h.setServer(server); 133 h.setServer(server);
137
138 if (server!=null && server!=old_server)
139 server.getContainer().update(this, null,_handler, "handler");
140 } 134 }
141 135
142 136
143 /* ------------------------------------------------------------ */ 137 /* ------------------------------------------------------------ */
144 @Override 138 @Override