Class InversionConfig


  • @Configuration
    public class InversionConfig
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      InversionConfig()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void applyEnvironment​(io.inversion.Engine engine, org.springframework.core.env.Environment environment)  
      org.springframework.boot.web.servlet.ServletRegistrationBean buildEngineServlet​(io.inversion.Engine engine, io.inversion.Api... apis)  
      static java.lang.String buildServletMapping​(io.inversion.Engine engine)  
      org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory buildWebServerFactory()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InversionConfig

        public InversionConfig()
    • Method Detail

      • buildEngineServlet

        @Bean
        public org.springframework.boot.web.servlet.ServletRegistrationBean buildEngineServlet​(@Autowired
                                                                                               io.inversion.Engine engine,
                                                                                               @Autowired
                                                                                               io.inversion.Api... apis)
      • applyEnvironment

        protected void applyEnvironment​(io.inversion.Engine engine,
                                        org.springframework.core.env.Environment environment)
      • buildWebServerFactory

        @Bean
        public org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory buildWebServerFactory()
      • buildServletMapping

        public static java.lang.String buildServletMapping​(io.inversion.Engine engine)
        Parameters:
        engine - the Engine hosting the Apis
        Returns:
        accumulation all of the static path parts shared by all Engine includesPaths.