Package org.araneaframework

Examples of org.araneaframework.Service


    String rndString = RandomStringUtils.random(8, false, true);
    id = (id != null) ? new StringBuffer(id).append(rndString).toString() : rndString;
   
    BeanFactory factory = (BeanFactory) getEnvironment().getEntry(BeanFactory.class);
    // TODO:: some better way in framework?
    Service service = (Service) factory.getBean("servletServiceAdapterComponent");
   
    currentThreadCtx.addService(id, service);
   
    if (startMessage != null)
      startMessage.send(null, service);
View Full Code Here


    }
   
    if (path.hasNext()) {
      Object next = path.next();
     
      Service service = (Service)getChildren().get(next);
      if (service == null) {
        log.warn("No service found", new NoSuchServiceException(next))
        return;
      }
     
      try {
        input.pushScope(next);
        output.pushScope(next);
       
        service._getService().action(path, input, output);
      }
      finally {
        input.popScope();
        output.popScope();
      }
View Full Code Here

    assertTrue(null!=input.getRequest().getSession().getAttribute(StandardServletSessionRouterService.SESSION_SERVICE_KEY));
  }
 
  public void testReusesOldSession() throws Exception {
    service._getService().action(path, input, output);
    Service sessService = (Service)input.getRequest().getSession().getAttribute(StandardServletSessionRouterService.SESSION_SERVICE_KEY);
    service._getService().action(path, input, output);
    assertEquals(sessService, input.getRequest().getSession().getAttribute(StandardServletSessionRouterService.SESSION_SERVICE_KEY));
  }
View Full Code Here

   
    factory.setBeanFactory(beanFactory);
  }
 
  public void testBuildService() {
    Service service = new MockEventfulStandardService();
    beanFactory.setBean(service);
   
    factory.setBeanId("beanId");
    assertEquals(service, factory.buildService());
    assertEquals("beanId",beanFactory.getBeanId());
View Full Code Here

          !(e instanceof StackOverflowError))
        throw (Error) e;     
     
      arUtil.rollback();
     
      Service service = factory.buildExceptionHandler(e, getEnvironment());
      service._getComponent().init(getEnvironment());
      try {
        log.debug("Routing request to the continuation.");
        service._getService().action(null, input, output);
      }
      finally {
        service._getComponent().destroy();
      }
    }

    arUtil.commit();
  }
View Full Code Here

TOP

Related Classes of org.araneaframework.Service

Copyright © 2018 www.massapicom. 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.