369214: HotSwapHandler code format
This commit is contained in:
parent
5c0c8c7e73
commit
ab5592daf0
|
@ -24,8 +24,8 @@ import org.eclipse.jetty.server.Request;
|
|||
import org.eclipse.jetty.server.Server;
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/** A <code>HandlerContainer</code> that allows a hot swap
|
||||
* of a wrapped handler.
|
||||
/**
|
||||
* A <code>HandlerContainer</code> that allows a hot swap of a wrapped handler.
|
||||
*
|
||||
*/
|
||||
public class HotSwapHandler extends AbstractHandlerContainer
|
||||
|
@ -55,12 +55,14 @@ public class HotSwapHandler extends AbstractHandlerContainer
|
|||
*/
|
||||
public Handler[] getHandlers()
|
||||
{
|
||||
return new Handler[] {_handler};
|
||||
return new Handler[]
|
||||
{ _handler };
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/**
|
||||
* @param handler Set the {@link Handler} which should be wrapped.
|
||||
* @param handler
|
||||
* Set the {@link Handler} which should be wrapped.
|
||||
*/
|
||||
public void setHandler(Handler handler)
|
||||
{
|
||||
|
@ -78,7 +80,6 @@ public class HotSwapHandler extends AbstractHandlerContainer
|
|||
if (getServer() != null)
|
||||
getServer().getContainer().update(this,old_handler,handler,"handler");
|
||||
|
||||
|
||||
// if there is an old handler and it was started, stop it
|
||||
if (old_handler != null && isStarted())
|
||||
{
|
||||
|
@ -132,7 +133,6 @@ public class HotSwapHandler extends AbstractHandlerContainer
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
@Override
|
||||
public void setServer(Server server)
|
||||
|
|
Loading…
Reference in New Issue