Package io.inversion.spring.config
Class InversionConfig
java.lang.Object
io.inversion.spring.config.InversionConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyEnvironment(io.inversion.Engine engine, org.springframework.core.env.Environment environment) org.springframework.boot.web.servlet.ServletRegistrationBeanbuildEngineServlet(io.inversion.Engine engine, io.inversion.Api... apis) static StringbuildServletMapping(io.inversion.Engine engine) org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory
-
Constructor Details
-
InversionConfig
public InversionConfig()
-
-
Method Details
-
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
- Parameters:
engine- the Engine hosting the Apis- Returns:
- accumulation all of the static path parts shared by all Engine includesPaths.
-