Examples of execute()


Examples of org.apache.karaf.shell.commands.basic.Context.execute()

        context.addCommand("bar", new SimpleCommand(MyAction.class), "one-action");
        context.addCommand("bar", new SimpleCommand(MyActionTwoArguments.class), "another");

        Completer comp = new CommandsCompleter(context.getSession());

        context.execute("foo");
        assertEquals(Arrays.asList("my-action "), complete(comp, "my"));
        assertEquals(Arrays.asList("exit ", "my-action ", "one-action "), complete(comp, ""));
        assertEquals(Arrays.asList(), complete(comp, "an"));
        assertEquals(Arrays.asList("--check", "--foo", "--help", "--integer", "--string"),
                     complete(comp, "my-action --"));
View Full Code Here

Examples of org.apache.karaf.shell.console.impl.jline.ConsoleImpl.DelegateSession.execute()

        assertEquals("put(a,b)", ts.lastInvoked);

        ds.put("c", "d");
        assertEquals("put(c,d)", ts.lastInvoked);

        ds.execute("hello 1234");
        assertEquals("execute(hello 1234)", ts.lastInvoked);

        ds.close();
        assertEquals("close", ts.lastInvoked);
View Full Code Here

Examples of org.apache.ldap.server.db.gui.PartitionViewer.execute()


    public void inspect() throws Exception
    {
        PartitionViewer viewer = new PartitionViewer( db, engine );
        viewer.execute();
    }
}
View Full Code Here

Examples of org.apache.ldap.server.partition.impl.btree.gui.PartitionViewer.execute()


    public void inspect() throws Exception
    {
        PartitionViewer viewer = new PartitionViewer( this, searchEngine );
        viewer.execute();
    }
   
    ////////////////////
    // public abstract methods
   
View Full Code Here

Examples of org.apache.lenya.cms.cocoon.task.CocoonTaskWrapper.execute()

        String str,
        Parameters parameters)
        throws java.lang.Exception {

        TaskWrapper wrapper = new CocoonTaskWrapper(objectModel, parameters);
        wrapper.execute();

        Request request = ObjectModelHelper.getRequest(objectModel);

        //------------------------------------------------------------
        // get session
View Full Code Here

Examples of org.apache.lenya.cms.task.AntTask.execute()

            File buildfile = new File(new URI(buildfileResource.toString()));
            parameters.setParameter(AntTask.BUILDFILE, buildfile.getAbsolutePath());
            task.parameterize(parameters);
           
            String servletContextPath = task.getParameters().getParameter(Task.PARAMETER_SERVLET_CONTEXT);
            task.execute(servletContextPath);
            
        } catch (Exception e) {
            e.printStackTrace(System.err);
        }
    }
View Full Code Here

Examples of org.apache.lenya.cms.task.DefaultTaskWrapper.execute()

        log.info("Executing job");
        JobDetail jobDetail = context.getJobDetail();
       
        DefaultTaskWrapper wrapper = new DefaultTaskWrapper(jobDetail.getJobDataMap());
        try {
            wrapper.execute();
        } catch (ExecutionException e) {
          log.error("Task execution failed: ", e);
        }
    }
View Full Code Here

Examples of org.apache.lenya.cms.task.Task.execute()

        TaskManager manager = new TaskManager(publication.getDirectory().getAbsolutePath());
        Task task = manager.getTask(taskId);

        try {
            task.parameterize(map.getParameters());
            task.execute(contextPath);
        }
        catch (ParameterException e) {
            log.debug("Initializing task failed: ", e);
        }
        catch (ExecutionException e) {
View Full Code Here

Examples of org.apache.lenya.cms.task.TaskWrapper.execute()

        String str,
        Parameters parameters)
        throws java.lang.Exception {

        TaskWrapper wrapper = new CocoonTaskWrapper(objectModel, parameters);
        wrapper.execute();

        Request request = ObjectModelHelper.getRequest(objectModel);

        //------------------------------------------------------------
        // get session
View Full Code Here

Examples of org.apache.lenya.cms.usecase.Usecase.execute()

                usecase.lockInvolvedObjects();
                usecase.checkExecutionConditions();

                if (succeeded(EXECUTION_CONDITIONS_FAILED, usecase)) {
                    usecase.execute();

                    boolean success = succeeded(EXECUTION_FAILED, usecase);
                    this.targetUrl = usecase.getTargetURL(success);
                    if (success) {
                        usecase.checkPostconditions();
View Full Code Here
TOP
Copyright © 2018 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.