All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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();
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy