Package javax.el

Examples of javax.el.ELContextEvent


        IMocksControl mockControl = EasyMock.createControl();
        ELContext elctx = mockControl.createMock(ELContext.class);
        MockFacesContext12 facesctx = new MockFacesContext12();
        Application app = mockControl.createMock(Application.class);
        facesctx.setApplication(app);
        ELContextEvent event = mockControl.createMock(ELContextEvent.class);
        expect(event.getELContext()).andReturn(elctx);
        elctx.putContext(eq(FacesContext.class), same(facesctx));
        ELContextListener elctxListener = mockControl.createMock(ELContextListener.class);
        expect(app.getELContextListeners()).andReturn(new ELContextListener[] { elctxListener });
        elctxListener.contextCreated(same(event));
        mockControl.replay();
View Full Code Here


    ELResolver r = this.createELResolver();
    ELContextImpl ctx = new ELContextImpl(r);
    ctx.putContext(JspContext.class, context);

    // alert all ELContextListeners
    ELContextEvent event = new ELContextEvent(ctx);
    for (int i = 0; i < this.contextListeners.size(); i++) {
      this.contextListeners.get(i).contextCreated(event);
    }

    return ctx;
View Full Code Here

        IMocksControl mockControl = EasyMock.createControl();
        ELContext elctx = mockControl.createMock(ELContext.class);
        MockFacesContext12 facesctx = new MockFacesContext12();
        Application app = mockControl.createMock(Application.class);
        facesctx.setApplication(app);
        ELContextEvent event = mockControl.createMock(ELContextEvent.class);
        expect(event.getELContext()).andReturn(elctx);
        elctx.putContext(eq(FacesContext.class), same(facesctx));
        ELContextListener elctxListener = mockControl.createMock(ELContextListener.class);
        expect(app.getELContextListeners()).andReturn(new ELContextListener[] { elctxListener });
        elctxListener.contextCreated(same(event));
        mockControl.replay();
View Full Code Here

            return _elContext;
        }

        _elContext = new FacesELContext(getApplication().getELResolver(), getCurrentFacesContext());

        ELContextEvent event = new ELContextEvent(_elContext);
        for (ELContextListener listener : getApplication().getELContextListeners())
        {
            listener.contextCreated(event);
        }
View Full Code Here

            ctx = new ELContextImpl(r);
        }
    ctx.putContext(JspContext.class, context);

    // alert all ELContextListeners
    ELContextEvent event = new ELContextEvent(ctx);
    for (int i = 0; i < this.contextListeners.size(); i++) {
      this.contextListeners.get(i).contextCreated(event);
    }

    return ctx;
View Full Code Here

    }

    @Override
    public ELContext createELContext() {
        ELContext context = new ELContextImpl();
        ELContextEvent event = new ELContextEvent(context);

        return context;
    }
View Full Code Here

     
      // Now notify any listeners that we have created this context
      ELContextListener[] listeners = app.getELContextListeners();
      if (listeners.length > 0)
      {
        ELContextEvent event = new ELContextEvent(mElContext);
        for (ELContextListener listener:listeners)
        {
          listener.contextCreated(event);
        }
      }
View Full Code Here

            ctx = new ELContextImpl(r);
        }
        ctx.putContext(JspContext.class, context);

        // alert all ELContextListeners
        ELContextEvent event = new ELContextEvent(ctx);
        for (int i = 0; i < this.contextListeners.size(); i++) {
            this.contextListeners.get(i).contextCreated(event);
        }

        return ctx;
View Full Code Here

        if (_elContext != null) return _elContext;
       
       
        _elContext = new FacesELContext(getApplication().getELResolver(), this);
       
        ELContextEvent event = new ELContextEvent(_elContext);
        for (ELContextListener listener : getApplication().getELContextListeners()) {
            listener.contextCreated(event);
        }
       
        return _elContext;
View Full Code Here

            // Notify interested listeners that this ELContext was created
            ELContextListener[] listeners = getApplication()
                    .getELContextListeners();
            if ((listeners != null) && (listeners.length > 0))
            {
                ELContextEvent event = new ELContextEvent(this.elContext);
                for (int i = 0; i < listeners.length; i++)
                {
                    listeners[i].contextCreated(event);
                }
            }
View Full Code Here

TOP

Related Classes of javax.el.ELContextEvent

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.