Package org.jboss.forge.shell.events

Examples of org.jboss.forge.shell.events.PreCommandExecution


               ClassLoader current = Thread.currentThread().getContextClassLoader();
               boolean vetoed = false;
               try
               {
                  Thread.currentThread().setContextClassLoader(plugin.getClass().getClassLoader());
                  PreCommandExecution event = new PreCommandExecution(command, originalStatement, parameterArray);
                  manager.fireEvent(event, new Annotation[0]);
                  vetoed = event.isVetoed();
                  if (!vetoed)
                  {
                     command.getMethod().invoke(plugin, paramStaging);
                     status = Status.SUCCESS;
                  }
View Full Code Here


               ClassLoader current = Thread.currentThread().getContextClassLoader();
               boolean vetoed = false;
               try
               {
                  Thread.currentThread().setContextClassLoader(plugin.getClass().getClassLoader());
                  PreCommandExecution event = new PreCommandExecution(command, originalStatement, parameterArray);
                  manager.fireEvent(event, new Annotation[0]);
                  vetoed = event.isVetoed();
                  if (!vetoed)
                  {
                     command.getMethod().invoke(plugin, paramStaging);
                     status = Status.SUCCESS;
                  }
View Full Code Here

               Map<Object, Object> executionContext = new HashMap<Object, Object>();
               boolean vetoed = false;
               try
               {
                  Thread.currentThread().setContextClassLoader(plugin.getClass().getClassLoader());
                  PreCommandExecution event = new PreCommandExecution(command, originalStatement, parameterArray,
                           executionContext);
                  manager.fireEvent(event, new Annotation[0]);
                  vetoed = event.isVetoed();
                  if (!vetoed)
                  {
                     command.getMethod().invoke(plugin, paramStaging);
                     status = Status.SUCCESS;
                  }
View Full Code Here

TOP

Related Classes of org.jboss.forge.shell.events.PreCommandExecution

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.