Examples of complete()


Examples of org.apache.geronimo.gshell.console.completer.StringsCompleter.complete()

    }

    public int complete(final String buffer, final int cursor, final List candidates) {
        Collection<String> artifacts = getComponentsAndAssemblies();
        StringsCompleter delegate = new StringsCompleter(artifacts);
        return delegate.complete(buffer, cursor, candidates);
    }

    protected Set<String> getComponentsAndAssemblies() {
        try {
            Set<String> artifacts = new HashSet<String>();
View Full Code Here

Examples of org.apache.isis.applib.services.command.spi.CommandService.complete()

        final CommandContext commandContext = getServiceOrNull(CommandContext.class);
        if(commandContext != null) {
            final CommandService commandService = getServiceOrNull(CommandService.class);
            if(commandService != null) {
                final Command command = commandContext.getCommand();
                commandService.complete(command);
            }
        }
    }

View Full Code Here

Examples of org.apache.jetspeed.aggregator.PortletContent.complete()

                            }
                            else
                            {
                                synchronized (content)
                                {
                                    content.complete();
                                }
                            }
                        }
                       
                        if (status == WorkEvent.WORK_COMPLETED || status == WorkEvent.WORK_REJECTED || isTimeout)
View Full Code Here

Examples of org.apache.karaf.shell.console.Completer.complete()

            String[] args = list.getArguments();
            String arg = ((args == null) || (i >= args.length)) ? "" : args[i];

            List<String> subCandidates = new LinkedList<String>();

            if (sub.complete(arg, arg.length(), subCandidates) == -1) {
                return -1;
            }

            if (subCandidates.size() == 0) {
                return -1;
View Full Code Here

Examples of org.apache.karaf.shell.console.completer.StringsCompleter.complete()

                delegate.getStrings().add(karName);
            }
        } catch (Exception e) {
            // ignore
        }
        return delegate.complete(buffer, cursor, candidates);
    }
   
    public void setKarService(KarService karService) {
        this.karService = karService;
    }
View Full Code Here

Examples of org.apache.karaf.shell.support.completers.StringsCompleter.complete()

                delegate.getStrings().add(repository.getName());
            }
        } catch (Exception e) {
            // Ignore
        }
        return delegate.complete(session, commandLine, candidates);
    }

}
View Full Code Here

Examples of org.apache.mina.session.DefaultWriteFuture.complete()

                    // generate the message sent event
                    // complete the future if we have one (we should...)
                    final DefaultWriteFuture future = (DefaultWriteFuture) writeRequest.getFuture();

                    if (future != null) {
                        future.complete();
                    }

                    final Object highLevel = ((DefaultWriteRequest) writeRequest).getOriginalMessage();

                    if (highLevel != null) {
View Full Code Here

Examples of org.apache.mina.transport.ConnectFuture.complete()

    @Override
    public IoFuture<IoSession> connect(SocketAddress remoteAddress) {
        BioUdpSession session = new BioUdpSession(remoteAddress, BioUdpServer.this, idleChecker);
        sessions.put(remoteAddress, session);
        ConnectFuture cf = new ConnectFuture();
        cf.complete(session);
        return cf;
    }

    private class Worker extends Thread {
View Full Code Here

Examples of org.apache.ode.bpel.iapi.MyRoleMessageExchange.complete()

            wrapper.appendChild(body);
            Element message = body.getOwnerDocument().createElementNS("", "message");
            message.appendChild(wrapper);
            request.setMessage(message);
            mex.invoke(request);
            mex.complete();
            _txManager.commit();
        } catch (Exception except) {
              _txManager.rollback();
              throw except;
        }
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.common.extension.ExtensionContext.complete()

        context.writeVariable("tmpVar", DOMUtils.stringToDOM(sb.toString()));
      } catch (Exception e) {
        e.printStackTrace();
        Assert.fail();
      } finally {
        context.complete();
      }
    }
  }

  public static class TestExtensionValidatorActivity extends AbstractAsyncExtensionOperation {
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.