Examples of context()


Examples of akka.camel.Camel.context()

  public void customRoute() throws Exception{
    //#CustomRoute
    ActorSystem system = ActorSystem.create("some-system");
    Camel camel = CamelExtension.get(system);
    ActorRef responder = system.actorOf(Props.create(Responder.class), "TestResponder");
    camel.context().addRoutes(new CustomRouteBuilder(responder));
    //#CustomRoute
    system.stop(responder);
    JavaTestKit.shutdownActorSystem(system);
  }
}
View Full Code Here

Examples of com.arjuna.mw.wsas.context.DeploymentContext.context()

        _coordManager.suspend();

        _coordManager.begin();

        DeploymentContext manager = DeploymentContextFactory.deploymentContext();
        ArjunaContextImple arjunaContext = (ArjunaContextImple)manager.context();

                final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
                final String registrationCoordinatorURI = soapRegistry.getServiceURI(CoordinationConstants.SERVICE_REGISTRATION_COORDINATOR) ;
               
                final CoordinationContextType coordinationContext = new CoordinationContextType() ;
View Full Code Here

Examples of com.arjuna.mwlabs.wst.at.context.TxContextImple.context()

      currentTx = (TxContextImple) _ctxManager.suspend();

      if (currentTx == null)
        throw new com.arjuna.wsc.NoActivityException();

            final CoordinationContextType coordinationContext = currentTx.context().getCoordinationContext() ;
            final String messageId = new Uid().stringForm() ;
            return RegistrationCoordinator.register(coordinationContext, messageId, participant, protocol) ;
    }
    catch (final SoapFault sf)
    {
View Full Code Here

Examples of com.arjuna.mwlabs.wst.ba.context.TxContextImple.context()

          currentTx = (TxContextImple) _ctxManager.currentTransaction();
         
          if (currentTx == null)
            throw new com.arjuna.wsc.NoActivityException();

            final CoordinationContextType coordinationContext = currentTx.context().getCoordinationContext() ;
            final String messageId = new Uid().stringForm() ;
            return RegistrationCoordinator.register(coordinationContext, messageId, participant, protocol) ;
      }
        catch (final SoapFault sf)
        {
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.at.context.TxContextImple.context()

            final com.arjuna.mw.wst11.TransactionManager wsatManager = TransactionManagerFactory.transactionManager();
            CoordinationContextType coordinationContext = null;
            if (wsatManager != null) {
                final TxContextImple txContext = (TxContextImple)wsatManager.currentTransaction();
                if (txContext != null) {
                    coordinationContext = txContext.context().getCoordinationContext();
                }
            }

            if (coordinationContext != null) {
                String txContextString = _txSerializer.serialise(coordinationContext);
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.ba.context.TxContextImple.context()

          currentTx = (TxContextImple) _ctxManager.currentTransaction();

          if (currentTx == null)
            throw new com.arjuna.wsc.NoActivityException();

            final CoordinationContextType coordinationContext = currentTx.context().getCoordinationContext() ;
            final String messageId = MessageId.getMessageId() ;
            return RegistrationCoordinator.register(coordinationContext, messageId, participant, protocol) ;
      }
        catch (final SoapFault sf)
        {
View Full Code Here

Examples of com.googlecode.wicketwebbeans.model.api.JBean.context()

     * @param bean
     */
    private JBean processBean(BeanAST bean)
    {
        JBean jbean = new JBean( beanMetaData.getBeanClass() );
        jbean.context( bean.getContext() );
        jbean.extendsContext( bean.getExtendsContext() );
       
        for (ParameterAST param : bean.getParameters()) {
            jbean.add(param.getName(), param.getValuesAsStrings());
        }
View Full Code Here

Examples of com.mycila.testing.core.api.Execution.context()

    static void unsetCurrentExecution() {
        if (LOGGER.canDebug()) {
            Execution execution = CURRENT_EXECUTION.get();
            if (execution != null) {
                LOGGER.debug("Removing Execution Context %s#%s for test %s#%s", execution.step(), execution.method().getName(), execution.context().introspector().testClass().getName(), execution.context().introspector().instance().hashCode());
            }
        }
        CURRENT_EXECUTION.remove();
    }
View Full Code Here

Examples of com.netflix.simianarmy.Monkey.context()

    @Test
    public void testRunner() throws InterruptedException {
        BasicScheduler sched = new BasicScheduler(200, TimeUnit.MILLISECONDS, 1);
        Monkey mockMonkey = mock(Monkey.class);
        when(mockMonkey.context()).thenReturn(new TestMonkeyContext(Enums.MONKEY));
        when(mockMonkey.type()).thenReturn(Enums.MONKEY).thenReturn(Enums.MONKEY);

        final AtomicLong counter = new AtomicLong(0L);
        sched.start(mockMonkey, new Runnable() {
            @Override
View Full Code Here

Examples of com.webobjects.appserver.WOComponent.context()

        }catch(WOPageNotFoundException exc){
            //Do nothing here since it is not mandatory to have a plain text version component
        }
        if(plainTextComponent!=null){
            EOKeyValueCodingAdditions.DefaultImplementation.takeValuesFromDictionary(plainTextComponent, bindings);
            WOContext context = plainTextComponent.context();
            context.generateCompleteURLs();
            result.setPlainText(plainTextComponent.generateResponse().contentString());
        }
        return result;
    }
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.