[forge-dev] [JBoss JIRA] Commented: (SEAMFORGE-253) Provide a way for external processes to communicate with Forge

Lincoln Baxter III (JIRA) jira-events at lists.jboss.org
Fri Jul 15 08:48:23 EDT 2011


    [ https://issues.jboss.org/browse/SEAMFORGE-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614407#comment-12614407 ] 

Lincoln Baxter III commented on SEAMFORGE-253:
----------------------------------------------

What do you think about something like this that gets evaluated before the command is parsed or executed?

{code}
/**
 * Allows the shell input stream to be intercepted, modified, or observed by extensions.
 * 
 * @author <a href="mailto:lincolnbaxter at gmail.com">Lincoln Baxter, III</a>
 * 
 */
public interface InputStreamInterceptor
{
   /**
    * Intercepts a line of input and returns it along with any modifications. The returned value will be passed to the
    * Shell for invocation.
    */
   public String intercept(String line);
}
{code}

I hesitate to use hidden plugins, because I think we are already going to have plugin name conflicts soon (though we could qualify them)

But this is probably a useful API anyway.

Thoughts?

> Provide a way for external processes to communicate with Forge 
> ---------------------------------------------------------------
>
>                 Key: SEAMFORGE-253
>                 URL: https://issues.jboss.org/browse/SEAMFORGE-253
>             Project: Seam Forge
>          Issue Type: Feature Request
>            Reporter: Koen Aers
>
> For the Eclipse Forge Tools I need to be able to do the following:
> - ask Forge for the list of available commands in the current context
> - ask Forge for the plugin/command/option metadata 
> Ideally this should be done by sending Forge a 'meta' command that doesn't get executed but triggers a user provided listener (pretty much like a Forge plugin) that can build and send back the response. 
> I have experimented with a Forge plugin providing this behaviour but of course then this plugin shows up in the list of available commands which I don't want. This plugin had an alias that started with the ansi escape sequence so that its echo was easily detected and handled appropriately.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the forge-dev mailing list