Class OnlyofficeApplication

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

@SpringBootApplication(scanBasePackages={"org.exoplatform.onlyoffice","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}) @PropertySource("classpath:application.properties") @PropertySource("classpath:application-common.properties") public class OnlyofficeApplication extends io.meeds.spring.kernel.PortalApplicationContextInitializer
Makes the ONLYOFFICE editor add-on participate in the portal's shared Spring ApplicationContext, so its Spring-annotated beans (notably the OnlyofficeMcpTool @Service, active under the mcp-server profile) are discovered and can be collected by the mcp-server tool registry.

The add-on has NO JPA / Elasticsearch repositories and no Liquibase Spring configuration, so only the kernel and web integration modules are scanned in addition to the add-on package. The existing kernel wiring (declared in the add-on configuration.xml) is untouched: this Spring context lives alongside it, exactly like the Documents add-on does.

Because there is no DB layer at all, the Spring Boot DataSource / JPA / Liquibase auto-configurations (which are on the classpath transitively) are fully excluded. Otherwise Spring Boot would try to build an entityManagerFactory that depends on a liquibase bean whose default classpath:/db/changelog/db.changelog-master.yaml does not exist in this add-on, failing the context startup with a BeanCreationException 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

    • OnlyofficeApplication

      public OnlyofficeApplication()