Examples of ServletContextEvent


Examples of javax.servlet.ServletContextEvent

            log.debug("Sending application stop events");

        boolean ok = true;
        Object listeners[] = getApplicationLifecycleListeners();
        if (listeners != null && listeners.length > 0) {
            ServletContextEvent event =
                new ServletContextEvent(getServletContext());
            for (int i = 0; i < listeners.length; i++) {
                int j = (listeners.length - 1) - i;
                if (listeners[j] == null)
                    continue;
                if (listeners[j] instanceof ServletContextListener) {
View Full Code Here

Examples of javax.servlet.ServletContextEvent

            getLogger().debug("Sending application start events");

        Object instances[] = getApplicationLifecycleListeners();
        if (instances == null)
            return (ok);
        ServletContextEvent event =
          new ServletContextEvent(getServletContext());
        for (int i = 0; i < instances.length; i++) {
            if (instances[i] == null)
                continue;
            if (!(instances[i] instanceof ServletContextListener))
                continue;
View Full Code Here

Examples of javax.servlet.ServletContextEvent

            log.debug("Sending application stop events");

        boolean ok = true;
        Object listeners[] = getApplicationLifecycleListeners();
        if (listeners != null && (listeners.length > 0)) {
            ServletContextEvent event =
                new ServletContextEvent(getServletContext());
            for (int i = listeners.length - 1; i >= 0; i--) {
                if (listeners[i] == null)
                    continue;
                if (listeners[i] instanceof ServletContextListener) {
                    ServletContextListener listener =
View Full Code Here

Examples of javax.servlet.ServletContextEvent

        this.lifeCycle = webBeansContext.getService(ContainerLifecycle.class);

        try
        {
            this.servletContext = filterConfig.getServletContext();
            this.lifeCycle.startApplication(new ServletContextEvent(this.servletContext));

        }
        catch (Exception e)
        {
             logger.log(Level.SEVERE,
View Full Code Here

Examples of javax.servlet.ServletContextEvent

     * {@inheritDoc}
     */
    @Override
    public void destroy()
    {
        this.lifeCycle.stopApplication(new ServletContextEvent(this.servletContext));
        this.lifeCycle = null;
        this.servletContext = null;

        // just to be sure that we didn't lazily create anything...
        cleanupRequestThreadLocals();
View Full Code Here

Examples of javax.servlet.ServletContextEvent

            getLogger().debug("Sending application start events");

        Object instances[] = getApplicationLifecycleListeners();
        if (instances == null)
            return (ok);
        ServletContextEvent event =
          new ServletContextEvent(getServletContext());
        for (int i = 0; i < instances.length; i++) {
            if (instances[i] == null)
                continue;
            if (!(instances[i] instanceof ServletContextListener))
                continue;
View Full Code Here

Examples of javax.servlet.ServletContextEvent

        boolean ok = true;
        Object listeners[] = getApplicationLifecycleListeners();
        if (listeners == null)
            return (ok);
        ServletContextEvent event =
          new ServletContextEvent(getServletContext());
        for (int i = 0; i < listeners.length; i++) {
            int j = (listeners.length - 1) - i;
            if (listeners[j] == null)
                continue;
            if (!(listeners[j] instanceof ServletContextListener))
View Full Code Here

Examples of javax.servlet.ServletContextEvent

            getLogger().debug("Sending application start events");

        Object instances[] = getApplicationLifecycleListeners();
        if (instances == null)
            return (ok);
        ServletContextEvent event =
          new ServletContextEvent(getServletContext());
        for (int i = 0; i < instances.length; i++) {
            if (instances[i] == null)
                continue;
            if (!(instances[i] instanceof ServletContextListener))
                continue;
View Full Code Here

Examples of javax.servlet.ServletContextEvent

            log.debug("Sending application stop events");

        boolean ok = true;
        Object listeners[] = getApplicationLifecycleListeners();
        if (listeners != null && (listeners.length > 0)) {
            ServletContextEvent event =
                new ServletContextEvent(getServletContext());
            for (int i = listeners.length - 1; i >= 0; i--) {
                if (listeners[i] == null)
                    continue;
                if (listeners[i] instanceof ServletContextListener) {
                    ServletContextListener listener =
View Full Code Here

Examples of javax.servlet.ServletContextEvent

            getLogger().debug("Sending application start events");

        Object instances[] = getApplicationLifecycleListeners();
        if (instances == null)
            return (ok);
        ServletContextEvent event =
          new ServletContextEvent(getServletContext());
        for (int i = 0; i < instances.length; i++) {
            if (instances[i] == null)
                continue;
            if (!(instances[i] instanceof ServletContextListener))
                continue;
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.