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

io.permazen.cli.jshell.PermazenJShellShell Maven / Gradle / Ivy

The newest version!

/*
 * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
 */

package io.permazen.cli.jshell;

import com.google.common.base.Preconditions;

import io.permazen.cli.PermazenShellRequest;

import org.dellroad.jct.core.ShellRequest;
import org.dellroad.jct.jshell.JShellShell;
import org.dellroad.jct.jshell.JShellShellSession;

/**
 * A version of the JCT {@link JShellShell} that is Permazen aware.
 *
 * 

* Intended to provide the shell on which the {@link PermazenJShellCommand} is based. */ public class PermazenJShellShell extends JShellShell { @Override public JShellShellSession newShellSession(ShellRequest request) { Preconditions.checkArgument(request instanceof PermazenShellRequest, "request is not a PermazenShellRequest"); return new PermazenJShellShellSession(this, (PermazenShellRequest)request); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy