org.infinispan.cli.impl.ContextAwareQuitHandler Maven / Gradle / Ivy
package org.infinispan.cli.impl;
import org.aesh.command.settings.QuitHandler;
import org.infinispan.cli.Context;
/**
* @author Tristan Tarrant <[email protected]>
* @since 10.0
**/
public class ContextAwareQuitHandler implements QuitHandler {
private final Context context;
public ContextAwareQuitHandler(Context context) {
this.context = context;
}
@Override
public void quit() {
context.disconnect();
}
}