Extending the Module

This section explains how to extend Atoti Limits services by adding customizations.


In general, services in Atoti Limits can be extended by:

  1. Defining a Spring Bean that implements the interface represented by the service
  2. Marking the bean as Primary
  3. Importing the bean into your project

Importing Spring Beans into the Project

Customizations that override an existing default implementation will usually require importing your custom Spring Bean. The LimitsAppConfig class is the main entry-point in Atoti Limits for imports, so if you need to import your MyCustomBean class, you should do so here. For example:

    // Default imports start ...
    // ...
    // ... default imports end
   // Custom imports
public class LimitsAppConfig {
    // other code...