Class OperatonBpmWebappAutoConfiguration

java.lang.Object
org.operaton.bpm.spring.boot.starter.webapp.neo.OperatonBpmWebappAutoConfiguration
All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@AutoConfiguration @ConditionalOnProperty(prefix="operaton.bpm.webapp", name="neo.enabled", havingValue="true") @ConditionalOnBean(OperatonBpmProperties.class) @ConditionalOnWebApplication @AutoConfigureAfter(OperatonBpmAutoConfiguration.class) public class OperatonBpmWebappAutoConfiguration extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Auto configuration for the new web apps (webapps-neo). The SPA is served as a static resource bundle, by default from the application root (/). It is gated independently from the legacy webapps via operaton.bpm.webapp.neo.enabled so both can run side by side.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
    Document the SPA fetches at boot to learn how it was configured.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OperatonBpmWebappAutoConfiguration(org.springframework.core.io.ResourceLoader resourceLoader, OperatonBpmProperties properties, org.springframework.core.env.Environment environment)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
     
    void
    addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addInterceptors, addReturnValueHandlers, configureApiVersioning, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • Field Details

    • CONFIG_PATH

      protected static final String CONFIG_PATH
      Document the SPA fetches at boot to learn how it was configured.
      See Also:
  • Constructor Details

    • OperatonBpmWebappAutoConfiguration

      public OperatonBpmWebappAutoConfiguration(org.springframework.core.io.ResourceLoader resourceLoader, OperatonBpmProperties properties, org.springframework.core.env.Environment environment)
  • Method Details

    • addResourceHandlers

      public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
      Specified by:
      addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • addViewControllers

      public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
      Specified by:
      addViewControllers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer