How it works
To create your own template, you will need to create a bean of theLimitStructureTemplate class. Note that the templateName and serverName fields are required:
Define the beans
To define aLimitStructureTemplate bean, you have two options:
Option 1 (Recommended): Define a set of LimitStructureTemplateConfigurationProperties in application.yml
LimitStructureTemplates can be created via configuration properties. This is the recommended approach as it allows you to define multiple templates in a single file and have the Spring beans created automatically.
To define a template in application.yml, add the description under the limits.structure.templates property. A minimal template can be defined as follows, where MyConnectedServer is the name of the Atoti Server that Limits will connect to and serves as the key in the map:
LimitStructure for multiple templates:
Option 2: Define a LimitStructureTemplate bean in a configuration class
To define your own template, add a method in any @Configuration class. Annotate the method with @Bean and return a LimitStructureTemplate object.
See Importing Spring Beans into the Project for more information.
Example: