Examples of StandardEnvironment


Examples of org.araneaframework.core.StandardEnvironment

  public void runContinuation(Service continuation) throws Exception {
    this.continuation = continuation;
   
    Map entries = new HashMap();
    entries.put(ContinuationContext.class, this);       
    continuation._getComponent().init(new StandardEnvironment(getEnvironment(), entries));
   
    throw new AraneaRuntimeException("Continuation set!");
  }
View Full Code Here

Examples of org.araneaframework.core.StandardEnvironment

    comp._getComponent().init(env);
    return comp;
  }
 
  public static Component begin(Component comp) throws Exception {
    comp._getComponent().init(new StandardEnvironment(null, new HashMap()));
    return comp;
  }
View Full Code Here

Examples of org.araneaframework.core.StandardEnvironment

  private Map popupProperties = new HashMap();
 
  protected void init() throws Exception {
    Map entries = new HashMap();
    entries.put(PopupWindowContext.class, this);
    childWidget._getComponent().init(new StandardEnvironment(getChildWidgetEnvironment(), entries));
   
    log.debug("Popup filter service initialized.");
  }
View Full Code Here

Examples of org.araneaframework.core.StandardEnvironment

    Map entries = new HashMap();
    entries.put(ServletContext.class, config.getServletContext());
    entries.put(ServletConfig.class, config);
    entries.putAll(getEnvironmentEntries());
    Environment env = new StandardEnvironment(null, entries);
   
    try {
      serviceAdapter._getComponent().init(env);
    }
    catch (Exception e) {
View Full Code Here

Examples of org.araneaframework.core.StandardEnvironment

 
  protected Environment getChildEnvironment() {
    Map entries = new HashMap()
    entries.put(JspContext.class, this);
   
    return new StandardEnvironment(getEnvironment(), entries);
  }
View Full Code Here

Examples of org.araneaframework.core.StandardEnvironment

  public static Path getPath(String str) {
    return new StandardPath(str);
  }
 
  public static Environment getEnv() {
    return new StandardEnvironment(null, new HashMap());
  }
View Full Code Here

Examples of org.araneaframework.core.StandardEnvironment

  }
 
  protected Environment getChildEnvironment(Object serviceId) throws Exception {
    Map entries = new HashMap();   
    entries.put(PathInfoServiceContext.class, new ServiceRouterContextImpl(serviceId));
    return new StandardEnvironment(getEnvironment(), entries);
  }
View Full Code Here

Examples of org.araneaframework.core.StandardEnvironment

    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

Examples of org.araneaframework.core.StandardEnvironment

   
    boolean destroySession = ((ServletInputData)input).getGlobalData().get(DESTROY_SESSION_PARAMETER_KEY)!=null;
   
    Map map = new HashMap();
    map.put(HttpSession.class, sess);
    Environment newEnv = new StandardEnvironment(getEnvironment(), map);
   
    //XXX Must synchronize differently!!!
    synchronized (sess) {
      Relocatable.RelocatableService service = null;  
           
View Full Code Here

Examples of org.araneaframework.core.StandardEnvironment

 
  public void setUp() throws Exception {
    child = new MockEventfulBaseWidget();
    trans = new StandardTransactionFilterWidget();
    trans.setChildWidget(child);
    trans._getComponent().init(new StandardEnvironment(null, new HashMap()));
   
    resp = new MockHttpServletResponse();
    req = new MockHttpServletRequest();
   
    output = new StandardServletOutputData(req, resp);
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.