Skip to content

Extensions

Philip Helger edited this page Aug 5, 2019 · 4 revisions

The SMP server is extensible in certain ways.

Creating a new backend

A backend defines how the data is persisted (e.g. in a database, file system etc.).

What you basically need to do is the following:

  • Create a new backend sub-project (like phoss-smp-backend-xml)
  • Implement the class com.helger.phoss.smp.domain.ISMPManagerProvider in your project (the manager factory)
  • Implement the SPI class com.helger.phoss.smp.backend.ISMPBackendRegistrarSPI in your project
  • Create a new webapp sub-project (like phoss-smp-webapp-xml) that references your backend