Examples of Invoker


Examples of org.apache.cxf.service.invoker.Invoker

        public void handleMessage(final Message message) throws Fault {
            final Exchange cxfExchange = message.getExchange();
            final Endpoint endpoint = cxfExchange.get(Endpoint.class);
            final Service service = endpoint.getService();
            final Invoker invoker = service.getInvoker();

            if (invoker instanceof Servant) {
                // it's rm request, run the invocation directly in bc, not send
                // to se.
                Exchange runableEx = message.getExchange();
                Object result = invoker.invoke(runableEx, getInvokee(message));
                if (!cxfExchange.isOneWay()) {
                    Endpoint end = cxfExchange.get(Endpoint.class);

                    Message outMessage = runableEx.getOutMessage();
                    if (outMessage == null) {

Examples of org.apache.cxf.service.invoker.Invoker

            server = new ServerImpl(getBus(),
                                    ep,
                                    getDestinationFactory(),
                                    getBindingFactory());

            Invoker invoker = serviceFactory.getInvoker();
            if (invoker == null) {
                ep.getService().setInvoker(createInvoker());
            } else {
                ep.getService().setInvoker(invoker);
            }

Examples of org.apache.ibatis.reflection.invoker.Invoker

      throw new ReflectionException("There is no default constructor for " + type);
    }
  }

  public Invoker getSetInvoker(String propertyName) {
    Invoker method = setMethods.get(propertyName);
    if (method == null) {
      throw new ReflectionException("There is no setter for property named '" + propertyName + "' in '" + type + "'");
    }
    return method;
  }

Examples of org.apache.maven.shared.invoker.Invoker

     
      List<String> lifeCycle = new ArrayList<String>();
      lifeCycle.add(command.getCommandLine());
      request.setGoals(lifeCycle);
     
      Invoker invoker = new DefaultInvoker();
      invoker.setMavenHome(new File(PreferenceResolver.resolveMavenHome()));
 
      InvocationOutputHandler outHandler = new PrintStreamHandler(outPutHandler.getPrintStream(), false);
      invoker.setOutputHandler(outHandler);
      invoker.setErrorHandler(outHandler);
     
      invoker.execute( request );
    } catch (Exception e) {
        StatusManager
        .getManager()
        .handle(new Status(IStatus.ERROR, Activator.PLUGIN_ID,
            "There was an error during the execution of the maven command.", e),

Examples of org.apache.maven.shared.invoker.Invoker

        throws MavenExecutorException
    {
        InvocationOutputHandler handler = getOutputHandler();
        InvokerLogger bridge = getInvokerLogger();

        Invoker invoker =
            new DefaultInvoker().setMavenHome( releaseEnvironment.getMavenHome() ).setLogger( bridge ).setOutputHandler(
                handler ).setErrorHandler( handler );

        InvocationRequest req =
            new DefaultInvocationRequest().setDebug( getLogger().isDebugEnabled() ).setBaseDirectory(
                workingDirectory ).setInteractive( interactive );

        if ( pomFileName != null )
        {
            req.setPomFileName( pomFileName );
        }

        File settingsFile = null;
        if ( releaseEnvironment.getSettings() != null )
        {
            // Have to serialize to a file as if Maven is embedded, there may not actually be a settings.xml on disk
            try
            {
                settingsFile = File.createTempFile( "release-settings", ".xml" );
                SettingsXpp3Writer writer = getSettingsWriter();
                FileWriter fileWriter = null;
                try
                {
                    fileWriter = new FileWriter( settingsFile );
                    writer.write( fileWriter, encryptSettings( releaseEnvironment.getSettings() ) );
                }
                finally
                {
                    IOUtil.close( fileWriter );
                }
                req.setUserSettingsFile( settingsFile );
            }
            catch ( IOException e )
            {
                throw new MavenExecutorException( "Could not create temporary file for release settings.xml", e );
            }
        }
        try
        {
            File localRepoDir = releaseEnvironment.getLocalRepositoryDirectory();
            if ( localRepoDir != null )
            {
                req.setLocalRepositoryDirectory( localRepoDir );
            }

            setupRequest( req, bridge, additionalArguments );

            req.setGoals( goals );

            try
            {
                InvocationResult invocationResult = invoker.execute( req );

                if ( invocationResult.getExecutionException() != null )
                {
                    throw new MavenExecutorException( "Error executing Maven.",
                                                      invocationResult.getExecutionException() );

Examples of org.apache.sandesha2.workers.Invoker

      StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(configContext, configContext.getAxisConfiguration());
      reportTransaction = storageManager.getTransaction();

      //only do this if we are running inOrder
      if(SandeshaUtil.getPropertyBean(configContext.getAxisConfiguration()).isInOrder()){
        Invoker invoker = (Invoker)SandeshaUtil.getSandeshaStorageManager(configContext, configContext.getAxisConfiguration()).getInvoker();
        if (invoker==null){
          throw new SandeshaException(SandeshaMessageHelper.getMessage(
            SandeshaMessageKeys.invokerNotFound, sequenceID));
        }
       
        invoker.forceInvokeOfAllMessagesCurrentlyOnSequence(configContext, sequenceID, allowLaterDeliveryOfMissingMessages);     
      }
     
      if(reportTransaction != null && reportTransaction.isActive()) reportTransaction.commit();
      reportTransaction = null;

Examples of org.apache.sandesha2.workers.Invoker

    this.rMSBeanMgr = new InMemoryRMSBeanMgr (this, context);
    this.rMDBeanMgr = new InMemoryRMDBeanMgr (this, context);
    this.senderBeanMgr = new InMemorySenderBeanMgr (this, context);
    this.invokerBeanMgr = new InMemoryInvokerBeanMgr (this, context);
    this.sender = new Sender();
    if(inOrder) this.invoker = new Invoker();
    if(polling) this.pollingManager = new PollingManager();
  }

Examples of org.apache.sandesha2.workers.Invoker

    }
  }

  public static void startInvokerForTheSequence(ConfigurationContext context, String sequenceID) {
   
    Invoker invoker = (Invoker) context.getProperty(Sandesha2Constants.INVOKER);
    if (invoker!=null)
      invoker.runInvokerForTheSequence(context,sequenceID);
    else {
      invoker = new Invoker ();
      context.setProperty(Sandesha2Constants.INVOKER,invoker);
      invoker.runInvokerForTheSequence(context,sequenceID);
    }
  }

Examples of org.apache.sandesha2.workers.Invoker

   
    return pollingManager;
  }

  private static void stopInvokerForTheSequence(String sequenceID, ConfigurationContext context) {
    Invoker invoker = (Invoker) context.getProperty(Sandesha2Constants.INVOKER);
    if (invoker!=null)
      invoker.stopInvokerForTheSequence(sequenceID);
  }

Examples of org.apache.sandesha2.workers.Invoker

    if (invoker!=null)
      invoker.stopInvokerForTheSequence(sequenceID);
  }
 
  public static void stopInvoker(ConfigurationContext context) {
    Invoker invoker = (Invoker) context.getProperty(Sandesha2Constants.INVOKER);
    if (invoker!=null)
      invoker.stopInvoking();
  }
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.