Examples of loadOnStartup()


Examples of javax.servlet.annotation.WebServlet.loadOnStartup()

            holder.setName(servletName);
            holder.setDisplayName(annotation.displayName());
            metaData.setOrigin(servletName+".servlet.display-name",annotation,clazz);

            holder.setInitOrder(annotation.loadOnStartup());
            metaData.setOrigin(servletName+".servlet.load-on-startup",annotation,clazz);

            holder.setAsyncSupported(annotation.asyncSupported());
            metaData.setOrigin(servletName+".servlet.async-supported",annotation,clazz);
View Full Code Here

Examples of javax.servlet.annotation.WebServlet.loadOnStartup()

            WebServlet annotation = clazz.getAnnotation(WebServlet.class);
            // Add servlet
            Wrapper wrapper = context.createWrapper();
            wrapper.setName(annotation.name());
            wrapper.setServletClass(clazz.getName());
            wrapper.setLoadOnStartup(annotation.loadOnStartup());
            WebInitParam[] params = annotation.initParams();
            for (int i = 0; i < params.length; i++) {
                wrapper.addInitParameter(params[i].name(), params[i].value());
            }
            context.addChild(wrapper);
View Full Code Here

Examples of javax.servlet.annotation.WebServlet.loadOnStartup()

            WebServlet annotation = clazz.getAnnotation(WebServlet.class);
            // Add servlet
            Wrapper wrapper = context.createWrapper();
            wrapper.setName(annotation.name());
            wrapper.setServletClass(clazz.getName());
            wrapper.setLoadOnStartup(annotation.loadOnStartup());
            WebInitParam[] params = annotation.initParams();
            for (int i = 0; i < params.length; i++) {
                wrapper.addInitParameter(params[i].name(), params[i].value());
            }
            context.addChild(wrapper);
View Full Code Here

Examples of javax.servlet.annotation.WebServlet.loadOnStartup()

                        new Object[] { webCompClass, urlPatternString }));
            }
        }

        if (webCompDesc.getLoadOnStartUp() == null) {
            webCompDesc.setLoadOnStartUp(webServletAn.loadOnStartup());
        }

        WebInitParam[] initParams = webServletAn.initParams();
        if (initParams != null && initParams.length > 0) {
            for (WebInitParam initParam : initParams) {
View Full Code Here

Examples of javax.servlet.annotation.WebServlet.loadOnStartup()

            WebServlet annotation = clazz.getAnnotation(WebServlet.class);
            // Add servlet
            Wrapper wrapper = context.createWrapper();
            wrapper.setName(annotation.name());
            wrapper.setServletClass(clazz.getName());
            wrapper.setLoadOnStartup(annotation.loadOnStartup());
            WebInitParam[] params = annotation.initParams();
            for (int i = 0; i < params.length; i++) {
                wrapper.addInitParameter(params[i].name(), params[i].value());
            }
            context.addChild(wrapper);
View Full Code Here

Examples of javax.servlet.annotation.WebServlet.loadOnStartup()

      if (webServlet.name().length() == 0)
         servletName = element.getName();
      else
         servletName = webServlet.name();
      servlet.setServletName(servletName);
      if (webServlet.loadOnStartup() >= 0)
         servlet.setLoadOnStartupInt(webServlet.loadOnStartup());
      servlet.setAsyncSupported(webServlet.asyncSupported());
      if (webServlet.initParams() != null)
      {
         List<ParamValueMetaData> initParams = new ArrayList<ParamValueMetaData>();
View Full Code Here

Examples of javax.servlet.annotation.WebServlet.loadOnStartup()

         servletName = element.getName();
      else
         servletName = webServlet.name();
      servlet.setServletName(servletName);
      if (webServlet.loadOnStartup() >= 0)
         servlet.setLoadOnStartupInt(webServlet.loadOnStartup());
      servlet.setAsyncSupported(webServlet.asyncSupported());
      if (webServlet.initParams() != null)
      {
         List<ParamValueMetaData> initParams = new ArrayList<ParamValueMetaData>();
         for (WebInitParam webInitParam : webServlet.initParams())
View Full Code Here

Examples of javax.servlet.annotation.WebServlet.loadOnStartup()

                        new Object[] { webCompClass, urlPatternString }));
            }
        }

        if (webCompDesc.getLoadOnStartUp() == null) {
            webCompDesc.setLoadOnStartUp(webServletAn.loadOnStartup());
        }

        WebInitParam[] initParams = webServletAn.initParams();
        if (initParams != null && initParams.length > 0) {
            for (WebInitParam initParam : initParams) {
View Full Code Here

Examples of javax.servlet.sip.annotation.SipServlet.loadOnStartup()

        if (annotation.name() != null && !"".equals(annotation.name()))
          holder.setName(annotation.name());
        else
          holder.setName(_className.substring(_className.lastIndexOf('.') + 1));
       
        holder.setInitOrder(annotation.loadOnStartup());
        holder.setDisplayName(annotation.description());
        holder.setClassName(_className);
       
        context.addSipServlet(holder);
    }
View Full Code Here

Examples of javax.servlet.sip.annotation.SipServlet.loadOnStartup()

            servlet.setServletClass(servletClassName);
           
            // ---- Set load on startup ---
            SipServlet sipServlet = (SipServlet) ainfo.getAnnotation();
           
            int loadOnStartUp = sipServlet.loadOnStartup();
            servlet.setLoadOnStartup(loadOnStartUp);
           
            // --- Set Servlet Name ---
            // if the annotated Servlet Name is omitted, the the Class Name of the
            // SipServlet is used as Servlet Name.
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.