Package org.araneaframework.core

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


  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

    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

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

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

  }
 
  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

    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

   
    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

 
  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

      }
           
      public Environment getEnvironment() {
        Map entries = new HashMap();
        entries.put("foo","barDefault");
        return new StandardEnvironment(super.getEnvironment(), entries);
      }
    };
    //XXX
    //widget.setChild(childWidget);
    widget._getComponent().init(MockUtil.getEnv());
View Full Code Here

TOP

Related Classes of org.araneaframework.core.StandardEnvironment

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.