Examples of execute()


Examples of ca.simplegames.micro.controllers.ControllerManager.execute()

        Context<String> input = new MapContext<String>()
                .with(Rack.REQUEST_METHOD, "GET")
                .with(Rack.PATH_INFO, "/micro-logo.png");

        ControllerManager cm = micro.getSite().getControllerManager();
        cm.execute("allien.Controller", context);
    }

    /**
     * try to execute a controller that will generate an internal exception
     */
 
View Full Code Here

Examples of cascading.lingual.catalog.ddl.DDLParser.execute()

      {
      List<DDLTable> commands = parser.parse( new File( getOptions().getDDL() ) );

      LOG.info( "found {} commands", commands.size() );

      parser.execute( commands );
      }
    catch( IOException exception )
      {
      throw new IllegalArgumentException( "unable to read file: " + getOptions().getDDL(), exception );
      }
View Full Code Here

Examples of cascading.lingual.shell.Shell.execute()

  protected void shellSQL( boolean expectedResult, String sql ) throws IOException
    {
    String[] args = new String[]{"--verbose", "debug", "--sql", "-", "--platform", getPlatformName(),
                                 "--resultPath", getResultPath()};
    Shell shell = createShell( new ByteArrayInputStream( sql.concat( "\n" ).getBytes() ) );
    boolean result = shell.execute( args );
    assertEquals( "'" + sql + "' returned incorrect status", expectedResult, result );
    }

  protected Catalog createCatalog()
    {
View Full Code Here

Examples of cc.concurrent.mango.runtime.operator.Operator.execute()

        protected Object handleInvocation(Object proxy, Method method, Object[] args) throws Throwable {
            if (logger.isDebugEnabled()) {
                logger.debug("{} #args={}", ToStringHelper.toString(method), args);
            }
            Operator operator = cache.get(method);
            Object r = operator.execute(args);
            if (logger.isDebugEnabled()) {
                logger.debug("{} #result={}", ToStringHelper.toString(method), r);
            }
            return r;
        }
View Full Code Here

Examples of ceylon.modules.spi.Executable.execute()

        if (exe == null) {
            throw new CeylonRuntimeException("Missing -executable argument");
        }

        Executable executable = createInstance(Executable.class, exe);
        executable.execute(conf);
    }

    private static Configuration parseArgs(String[] args) {
        Configuration conf = new Configuration();
        int n = args.length;
View Full Code Here

Examples of ch.epfl.labos.iu.orm.queryll2.symbolic.FrameWithHelpers.execute()

         // Skip "fake" instructions like Frame, LineNumber, and Label
         if (instruction.node.getOpcode() < 0) continue;
        
         if (instruction.isBranch)
            pathConditions.isBranchTaken = instruction.isBranchTaken;
         frame.execute(instruction.node, interpreter);
      }
     
      TypedValue returnValue = interpreter.returnValue;
      List<TypedValue.ComparisonValue> conditions = pathConditions.conditions;
     
View Full Code Here

Examples of ch.fusun.baron.client.rmi.ClientService.execute()

  public Object execute(ExecutionEvent event) throws ExecutionException {
    MarriageProposalDialog dialog = new MarriageProposalDialog();
    if (dialog.open() == SWT.OK) {
      ClientService client = ReInjector.getInstance()
          .getInstanceForClass(ClientService.class);
      client.execute(new ProposeMarriageCommand(dialog.getProposer(),
          dialog.getProposedTo()));
    }
    return null;
  }
}
View Full Code Here

Examples of ch.fusun.baron.core.command.GameCommand.execute()

      private void tryExecuteCommand(Object object) {
        try {
          GameCommand command = (GameCommand) object;
          ReInjector.getInstance().reInject(command);
          if (command.isAllowed()) {
            command.execute();
            updateUsers();
          } else {
            System.err.println(command + " not allowed"); //$NON-NLS-1$
          }
        } catch (Exception e) {
View Full Code Here

Examples of ch.hortis.sonar.core.service.Executor.execute()

 
  public static List<Service> services = new ArrayList<Service>();

  protected void processGroup(SnapshotGroup group) {
    Executor executor = new Executor(Service.getAllServices(getEntityManager()));
    executor.execute(group);

    for (Snapshot snapshot : group.getSnapshots()) {
      if (snapshot.getId() == null) {
        LOG.debug("Persisting Snapshot");
        getEntityManager().persist(snapshot);
View Full Code Here

Examples of ch.hortis.sonar.mvn.reports.ReportHandler.execute()

    for (Report report : Report.getReports()) {
      ReportHandler reportHandler = report.getReportHandler();
      if (reportHandler!=null) {
        if ((hasJavaSources || reportHandler.executeEvenIfNoJavaSources())
            && (hasJavaTests || reportHandler.executeEvenIfNoJavaTests()) &&
            reportHandler.execute( this, getLog() ) ) {
          executeReport(eventMonitor, reportHandler);
        }
      }
    }
  }
View Full Code Here
TOP
Copyright © 2015 www.massapi.com. 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.