Class CommonsExoExtensionApplication

java.lang.Object
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
io.meeds.spring.kernel.PortalApplicationContextInitializer
org.exoplatform.commons.exo.CommonsExoExtensionApplication
All Implemented Interfaces:
org.springframework.web.WebApplicationInitializer

@SpringBootApplication(scanBasePackages={"org.exoplatform.services.connector.credentials","io.meeds.spring.kernel","io.meeds.spring.web"}, exclude={org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration.class,org.springframework.boot.hibernate.autoconfigure.HibernateJpaAutoConfiguration.class,org.springframework.boot.data.jpa.autoconfigure.DataJpaRepositoriesAutoConfiguration.class}) @PropertySource("classpath:application.properties") @PropertySource("classpath:application-common.properties") public class CommonsExoExtensionApplication extends io.meeds.spring.kernel.PortalApplicationContextInitializer
Spring Boot bootstrap of commons-exo-extension - a pre-existing, always-deployed webapp (legacy kernel components: cache configuration for core services such as SettingService) that had no Spring context of its own until now. This is where commons-exo's own shared beans (ConnectorCredentialsService and PersonalCredentialsProvider in exo.core.component.connector.credentials) get their Spring wiring: this module is core platform infrastructure, never an optional add-on, so it is the right place to own that wiring once instead of every connector add-on redeclaring it, or - worse - a self-contained library jar auto-configuring on every Spring Boot webapp in the platform regardless of relevance.

Excludes Spring Boot's own JPA/Liquibase auto-configurations: with no entity and no changelog in this module, they trigger anyway - the shared platform classpath makes Liquibase/Hibernate visible here too - and fail (Liquibase looks for a changelog that does not exist).

  • Field Summary

    Fields inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class io.meeds.spring.kernel.PortalApplicationContextInitializer

    createSpringApplicationBuilder, isAsync, onStartup

    Methods inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer

    configure, createRootApplicationContext, deregisterJdbcDrivers, run, setRegisterErrorPageFilter, shutDownSharedReactorSchedulers

    Methods inherited from class java.lang.Object

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

    • CommonsExoExtensionApplication

      public CommonsExoExtensionApplication()