Package org.araneaframework.core

Examples of org.araneaframework.core.StandardRelocatableServiceDecorator$RelocatableComponentImpl


  public void setTestXmlSessionPath(String testXmlSessionPath) {
    this.testXmlSessionPath = testXmlSessionPath;
  }
 
  public void setChildService(Service child) {
    this.child = new StandardRelocatableServiceDecorator(child);
  }
View Full Code Here


    log.debug("session "+sessEvent.getSession().getId()+" created");
  }

  public void sessionDestroyed(HttpSessionEvent sessEvent) {
    if (sessEvent.getSession().getAttribute(StandardServletSessionRouterService.SESSION_SERVICE_KEY) != null ) {
      StandardRelocatableServiceDecorator service =
        (StandardRelocatableServiceDecorator) sessEvent.getSession().getAttribute(StandardServletSessionRouterService.SESSION_SERVICE_KEY);

      try {
        service._getRelocatable().overrideEnvironment(new StandardEnvironment(null, new HashMap()));
        service._getComponent().destroy();
        log.debug("Session "+sessEvent.getSession()+" destroyed with the service "+service);
      }
      catch(Exception e) {
        log.error(ExceptionUtils.getFullStackTrace(e));
      }
View Full Code Here

        return;
      }
     
      if (sess.getAttribute(SESSION_SERVICE_KEY) == null) {
        log.debug("Created HTTP session '"+sess.getId()+"'");
        service = new StandardRelocatableServiceDecorator(serviceFactory.buildService());       
       
        service._getComponent().init(newEnv);
      }
      else {
        service = (Relocatable.RelocatableService) sess.getAttribute(SESSION_SERVICE_KEY);
View Full Code Here

TOP

Related Classes of org.araneaframework.core.StandardRelocatableServiceDecorator$RelocatableComponentImpl

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.