Package org.jboss.as.cli
Interface CommandLineRedirection.Registration
-
- Enclosing interface:
- CommandLineRedirection
public static interface CommandLineRedirection.RegistrationRepresents registration of the command line redirection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandle(ParsedCommandLine parsedLine)Allows to execute the parsed command line as it normally would be executed w/o the redirection in effect.booleanisActive()Checks whether the registration is still active.voidunregister()Redirection can be stopped by invoking this method.
-
-
-
Method Detail
-
isActive
boolean isActive()
Checks whether the registration is still active. The method will return false after the unregister method has been called on the instance.- Returns:
- true if the registration is still active, false if the unregister method has been called on the instance
-
unregister
void unregister() throws CommandLineExceptionRedirection can be stopped by invoking this method.- Throws:
CommandLineException- in case unregistration failed
-
handle
void handle(ParsedCommandLine parsedLine) throws CommandLineException
Allows to execute the parsed command line as it normally would be executed w/o the redirection in effect.- Parameters:
parsedLine- the parsed command line- Throws:
CommandLineException- in case the line failed to execute
-
-