org.crsh.shell.impl.command
Class CRaSH
java.lang.Object
org.crsh.shell.impl.command.CRaSH
-
public class CRaSH
- extends Object
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
final PluginContext context
-
.
scriptResolver
final LanguageCommandResolver scriptResolver
-
.
resolvers
private final ArrayList<CommandResolver> resolvers
-
.
langs
final ArrayList<Language> langs
-
.
CRaSH
public CRaSH(PluginContext context)
throws NullPointerException
-
Create a new CRaSH.
- Parameters:
context
- the plugin context
- Throws:
NullPointerException
- if the context argument is null
createSession
public CRaSHSession createSession(Principal user)
-
getContext
public PluginContext getContext()
-
Returns the plugin context.
-
- Returns:
- the plugin context
getCommand
public Command<?> getCommand(String name)
throws CommandException,
NullPointerException
-
Attempt to obtain a command instance. Null is returned when such command does not exist.
-
- Parameters:
name
- the command name
- Returns:
- a command instance
- Throws:
CommandException
- if an error occured preventing the command creation
NullPointerException
- if the name argument is null
getCommands
public Iterable<Map.Entry<String,String>> getCommands()
-
Copyright © 2015 eXo Platform SAS. All Rights Reserved.