Example usage for javax.servlet ServletContainerInitializer onStartup

List of usage examples for javax.servlet ServletContainerInitializer onStartup

Introduction

In this page you can find the example usage for javax.servlet ServletContainerInitializer onStartup.

Prototype

public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException;

Source Link

Document

Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext.

Usage

From source file:org.joinfaces.omnifaces.OmnifacesServletContextInitializer.java

@Override
public void onStartup(ServletContext sc) throws ServletException {
    OmnifacesServletContextConfigurer.builder().omnifacesProperties(this.omnifacesProperties).servletContext(sc)
            .build().configure();//from   ww w  .java2 s  . c o  m

    ServletContainerInitializer servletContainerInitializer = getServletContainerInitializer();
    JsfClassFactory jsfClassFactory = new JsfClassFactory(this);
    servletContainerInitializer.onStartup(jsfClassFactory.getAllClasses(), sc);
}

From source file:org.joinfaces.mojarra.MojarraServletContextInitializer.java

@Override
public void onStartup(ServletContext sc) throws ServletException {
    MojarraServletContextConfigurer.builder().mojarraProperties(this.mojarraProperties).servletContext(sc)
            .build().configure();//from   w w w. j a v  a 2s  . c om

    ServletContainerInitializer servletContainerInitializer = getServletContainerInitializer();
    JsfClassFactory jsfClassFactory = new JsfClassFactory(this);
    servletContainerInitializer.onStartup(jsfClassFactory.getAllClasses(), sc);
}

From source file:com.github.persapiens.jsfboot.omnifaces.OmnifacesServletContextInitializer.java

@Override
public void onStartup(ServletContext sc) throws ServletException {
    OmnifacesServletContextConfigurer.builder().omnifacesProperties(this.omnifacesProperties).servletContext(sc)
            .build().configure();//from   ww  w.j  a  v a  2 s  . c o m

    ServletContainerInitializer servletContainerInitializer = getServletContainerInitializer();
    Set<Class<?>> classes = JsfClassFactory.builder().jsfAnnotatedClassFactoryConfiguration(this).build()
            .find();
    servletContainerInitializer.onStartup(classes, sc);
}

From source file:com.github.persapiens.jsfboot.mojarra.MojarraServletContextInitializer.java

@Override
public void onStartup(ServletContext sc) throws ServletException {
    MojarraServletContextConfigurer.builder().mojarraProperties(this.mojarraProperties).servletContext(sc)
            .build().configure();//from   w ww . j  ava  2  s  . com

    ServletContainerInitializer servletContainerInitializer = getServletContainerInitializer();
    Set<Class<?>> classes = JsfClassFactory.builder().jsfAnnotatedClassFactoryConfiguration(this).build()
            .find();
    servletContainerInitializer.onStartup(classes, sc);
}

From source file:com.github.persapiens.jsfboot.myfaces.MyfacesServletContextInitializer.java

@Override
public void onStartup(ServletContext sc) throws ServletException {
    MyfacesServletContextConfigurer.builder().myfacesProperties(this.myfacesProperties).servletContext(sc)
            .build().configure();//w w w . j av a  2s .com

    ServletContainerInitializer servletContainerInitializer = getServletContainerInitializer();
    Set<Class<?>> classes = JsfClassFactory.builder().jsfAnnotatedClassFactoryConfiguration(this).build()
            .find();
    servletContainerInitializer.onStartup(classes, sc);
}

From source file:org.joinfaces.myfaces.MyfacesServletContextInitializer.java

@Override
public void onStartup(ServletContext sc) throws ServletException {
    MyfacesServletContextConfigurer.builder().myfacesProperties(this.myfacesProperties).servletContext(sc)
            .build().configure();//  w  w  w.j  a  v a 2  s.c  o  m

    ServletContainerInitializer servletContainerInitializer = getServletContainerInitializer();
    JsfClassFactory jsfClassFactory = new JsfClassFactory(this);
    JoinFacesAnnotationProvider.setAnnotatedClasses(jsfClassFactory.getAnnotatedClassMap());
    JoinFacesAnnotationProvider.setUrls(jsfClassFactory.getURLs());
    servletContainerInitializer.onStartup(jsfClassFactory.getAllClasses(), sc);
}