Class ProcessesApplication

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

@SpringBootApplication(scanBasePackages={"org.exoplatform.processes.mcp","io.meeds.spring.kernel","io.meeds.spring.web"}, exclude={org.springframework.boot.liquibase.autoconfigure.LiquibaseAutoConfiguration.class,org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration.class,org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration.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 ProcessesApplication extends io.meeds.spring.kernel.PortalApplicationContextInitializer
Makes the eXo Processes add-on participate in the portal's shared Spring ApplicationContext, so its Spring-annotated beans (notably the ProcessesMcpTool @Service, active under the mcp-server profile in the processes-services jar) are discovered and collected by the mcp-server tool registry.

The add-on's existing persistence (JPA / Liquibase, wired through the kernel configuration.xml) is untouched: this Spring context lives alongside it and owns no data layer of its own, so the Spring Boot DataSource / JPA / Liquibase auto-configurations (present transitively on the classpath) are fully excluded. Otherwise Spring Boot would try to build an entityManagerFactory depending on a liquibase bean whose default classpath:/db/changelog/db.changelog-master.yaml does not exist here, failing context startup at boot.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    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
  • Field Details

  • Constructor Details

    • ProcessesApplication

      public ProcessesApplication()