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

org.infinispan.cli.completers.ContextAwareCompleterInvocationProvider Maven / Gradle / Ivy

package org.infinispan.cli.completers;

import java.util.Objects;

import org.aesh.command.completer.CompleterInvocation;
import org.aesh.command.completer.CompleterInvocationProvider;
import org.infinispan.cli.Context;

/**
 * @author Tristan Tarrant <[email protected]>
 * @since 10.0
 **/
public class ContextAwareCompleterInvocationProvider implements CompleterInvocationProvider {
   private final Context context;

   public ContextAwareCompleterInvocationProvider(Context context) {
      Objects.requireNonNull(context);
      this.context = context;
   }

   @Override
   public CompleterInvocation enhanceCompleterInvocation(CompleterInvocation completerInvocation) {
      return new ContextAwareCompleterInvocation(completerInvocation, context);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy