Forge - Shell API 1.2.0.Final

org.jboss.forge.shell.spi
Interface CommandInterceptor


public interface CommandInterceptor

Allows the shell input stream to be intercepted, modified, or observed by extensions.

Author:
Lincoln Baxter, III

Method Summary
 String intercept(String line)
          Intercepts a command and returns it along with any modifications.
 

Method Detail

intercept

String intercept(String line)
Intercepts a command and returns it along with any modifications. The returned value will be passed to the Shell for invocation. If the returned value is null, the shell simply ignores this line and waits for the next input.


Forge - Shell API 1.2.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.